This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

14
book/node_modules/omit-keys/.gitattributes generated vendored Normal file
View File

@ -0,0 +1,14 @@
# Enforce Unix newlines
*.* text eol=lf
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.less text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.jpg binary
*.gif binary
*.png binary
*.jpeg binary

22
book/node_modules/omit-keys/.jshintrc generated vendored Normal file
View File

@ -0,0 +1,22 @@
{
"esnext": true,
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"sub": true,
"undef": true,
"unused": true,
"globals": {
"define": true,
"before": true,
"after": true,
"describe": true,
"it": true
}
}

52
book/node_modules/omit-keys/.npmignore generated vendored Normal file
View File

@ -0,0 +1,52 @@
# Numerous always-ignore extensions
*.csv
*.dat
*.diff
*.err
*.gz
*.log
*.orig
*.out
*.pid
*.rar
*.rej
*.seed
*.swo
*.swp
*.vi
*.yo-rc.json
*.zip
*~
.ruby-version
lib-cov
npm-debug.log
# Always-ignore dirs
/bower_components/
/node_modules/
/temp/
/tmp/
/vendor/
_gh_pages
# OS or Editor folders
*.esproj
*.komodoproject
.komodotools
*.sublime-*
._*
.cache
.DS_Store
.idea
.project
.settings
.tmproj
nbproject
Thumbs.db
# grunt-html-validation
validation-status.json
validation-report.json
# misc
TODO.md

3
book/node_modules/omit-keys/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,3 @@
language: node_js
node_js:
- '0.10'

57
book/node_modules/omit-keys/.verbrc.md generated vendored Normal file
View File

@ -0,0 +1,57 @@
# {%= name %} {%= badge("fury") %}
> {%= description %}
## Install
{%= include("install") %}
## Run tests
```bash
npm test
```
## Usage
```js
var omitKeys = require('{%= name %}');
```
Pass a string `key` to omit:
```js
omit({a: 'a', b: 'b', c: 'c'}, 'a')
//=> { b: 'b', c: 'c' }
```
Pass an array of `keys` to omit:
```js
omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])
//=> { b: 'b' }
```
Returns the object if no keys are passed:
```js
omit({a: 'a', b: 'b', c: 'c'})
//=> {a: 'a', b: 'b', c: 'c'}
```
Returns an empty object if no value is passed.
```js
omit()
//=> {}
```
## Author
{%= include("author") %}
## License
{%= copyright() %}
{%= license() %}
***
{%= include("footer") %}

22
book/node_modules/omit-keys/LICENSE-MIT generated vendored Normal file
View File

@ -0,0 +1,22 @@
Copyright (c) 2014 Jon Schlinkert, contributors.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

66
book/node_modules/omit-keys/README.md generated vendored Normal file
View File

@ -0,0 +1,66 @@
# omit-keys [![NPM version](https://badge.fury.io/js/omit-keys.svg)](http://badge.fury.io/js/omit-keys)
> Return a copy of an object without the given keys.
## Install
#### Install with [npm](npmjs.org):
```bash
npm i omit-keys --save-dev
```
## Run tests
```bash
npm test
```
## Usage
```js
var omitKeys = require('omit-keys');
```
Pass a string `key` to omit:
```js
omit({a: 'a', b: 'b', c: 'c'}, 'a')
//=> { b: 'b', c: 'c' }
```
Pass an array of `keys` to omit:
```js
omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])
//=> { b: 'b' }
```
Returns the object if no keys are passed:
```js
omit({a: 'a', b: 'b', c: 'c'})
//=> {a: 'a', b: 'b', c: 'c'}
```
Returns an empty object if no value is passed.
```js
omit()
//=> {}
```
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2014._

33
book/node_modules/omit-keys/index.js generated vendored Normal file
View File

@ -0,0 +1,33 @@
/*!
* omit-key <https://github.com/jonschlinkert/omit-key>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
var isObject = require('isobject');
var difference = require('array-difference');
module.exports = function omit(obj, keys) {
if (!isObject(obj)) {
return {};
}
var props = Object.keys(obj);
var len = props.length;
keys = Array.isArray(keys) ? keys : [keys];
var diff = difference(props, keys);
var o = {};
for (var i = 0; i < len; i++) {
var key = diff[i];
if (obj.hasOwnProperty(key)) {
o[key] = obj[key];
}
}
return o;
};

54
book/node_modules/omit-keys/package.json generated vendored Normal file
View File

@ -0,0 +1,54 @@
{
"name": "omit-keys",
"description": "Return a copy of an object without the given keys.",
"version": "0.1.0",
"homepage": "https://github.com/jonschlinkert/omit-keys",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/omit-keys.git"
},
"bugs": {
"url": "https://github.com/jonschlinkert/omit-keys/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jonschlinkert/omit-keys/blob/master/LICENSE-MIT"
}
],
"main": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha -R spec"
},
"devDependencies": {
"verb-tag-jscomments": ">= 0.2.0",
"verb": ">= 0.2.6",
"mocha": "*"
},
"keywords": [
"JavaScript",
"Lo-Dash",
"Underscore",
"js",
"key",
"lodash",
"object",
"omit",
"property",
"remove",
"util",
"utilities",
"utils"
],
"dependencies": {
"array-difference": "0.0.1",
"isobject": "^0.2.0"
}
}

29
book/node_modules/omit-keys/test.js generated vendored Normal file
View File

@ -0,0 +1,29 @@
/*!
* omit-key <https://github.com/jonschlinkert/omit-key>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
var should = require('should');
var omit = require('./');
describe('.omit()', function () {
it('should omit the given key from the object.', function () {
omit({a: 'a', b: 'b', c: 'c'}, 'a').should.eql({ b: 'b', c: 'c' });
});
it('should omit the given keys from the object.', function () {
omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c']).should.eql({ b: 'b' });
});
it('should return the object if no keys are specified.', function () {
omit({a: 'a', b: 'b', c: 'c'}).should.eql({a: 'a', b: 'b', c: 'c'});
});
it('should return an empty object if no object is specified.', function () {
omit().should.eql({});
});
});