139 lines
7.8 KiB
JSON
139 lines
7.8 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "object.omit@^2.0.0",
|
|
"scope": null,
|
|
"escapedName": "object.omit",
|
|
"name": "object.omit",
|
|
"rawSpec": "^2.0.0",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch"
|
|
]
|
|
],
|
|
"_from": "object.omit@>=2.0.0 <3.0.0",
|
|
"_id": "object.omit@2.0.1",
|
|
"_inCache": true,
|
|
"_location": "/object.omit",
|
|
"_nodeVersion": "6.7.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-18-east.internal.npmjs.com",
|
|
"tmp": "tmp/object.omit-2.0.1.tgz_1477549482527_0.48828932945616543"
|
|
},
|
|
"_npmUser": {
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
},
|
|
"_npmVersion": "3.10.3",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "object.omit@^2.0.0",
|
|
"scope": null,
|
|
"escapedName": "object.omit",
|
|
"name": "object.omit",
|
|
"rawSpec": "^2.0.0",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/micromatch"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz",
|
|
"_shasum": "1a9c744829f39dbb858c76ca3579ae2a54ebd1fa",
|
|
"_shrinkwrap": null,
|
|
"_spec": "object.omit@^2.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch",
|
|
"author": {
|
|
"name": "Jon Schlinkert",
|
|
"url": "https://github.com/jonschlinkert"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/jonschlinkert/object.omit/issues"
|
|
},
|
|
"dependencies": {
|
|
"for-own": "^0.1.4",
|
|
"is-extendable": "^0.1.1"
|
|
},
|
|
"description": "Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.",
|
|
"devDependencies": {
|
|
"gulp-format-md": "^0.1.11",
|
|
"mocha": "^3.1.2",
|
|
"should": "^11.1.1"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "1a9c744829f39dbb858c76ca3579ae2a54ebd1fa",
|
|
"tarball": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "6634673e6e88c65796f1df4bcb787dede6dc7ffc",
|
|
"homepage": "https://github.com/jonschlinkert/object.omit",
|
|
"keywords": [
|
|
"clear",
|
|
"delete",
|
|
"key",
|
|
"object",
|
|
"omit",
|
|
"property",
|
|
"remove",
|
|
"value"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
},
|
|
{
|
|
"name": "doowb",
|
|
"email": "brian.woodward@gmail.com"
|
|
}
|
|
],
|
|
"name": "object.omit",
|
|
"optionalDependencies": {},
|
|
"readme": "# object.omit [![NPM version](https://img.shields.io/npm/v/object.omit.svg?style=flat)](https://www.npmjs.com/package/object.omit) [![NPM monthly downloads](https://img.shields.io/npm/dm/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![NPM total downloads](https://img.shields.io/npm/dt/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/object.omit.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/object.omit)\n\n> Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save object.omit\n```\n\n## Usage\n\n```js\nvar omit = require('object.omit');\n```\n\nPass a string `key` to omit:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'}, 'a')\n//=> { b: 'b', c: 'c' }\n```\n\nPass an array of `keys` to omit:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])\n//=> { b: 'b' }\n```\n\nReturns the object if no keys are passed:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'})\n//=> {a: 'a', b: 'b', c: 'c'}\n```\n\nReturns an empty object if no value is passed.\n\n```js\nomit()\n//=> {}\n```\n\n### Filter function\n\nAn optional filter function may be passed as the last argument, with or without keys passed on the arguments:\n\n**filter on keys**\n\n```js\nvar res = omit({a: 'a', b: 'b', c: 'c'}, function (val, key) {\n return key === 'a';\n});\n//=> {a: 'a'}\n```\n\n**filter on values**\n\n```js\nvar fn = function() {};\nvar obj = {a: 'a', b: 'b', c: fn};\n\nvar res = omit(obj, ['a'], function (val, key) {\n return typeof val !== 'function';\n});\n//=> {b: 'b'}\n```\n\n## About\n\n### Related projects\n\n* [object.defaults](https://www.npmjs.com/package/object.defaults): Like `extend` but only copies missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/object.defaults \"Like `extend` but only copies missing properties/values to the target object.\")\n* [object.filter](https://www.npmjs.com/package/object.filter): Create a new object filtered to have only properties for which the callback returns true. | [homepage](https://github.com/jonschlinkert/object.filter \"Create a new object filtered to have only properties for which the callback returns true.\")\n* [object.pick](https://www.npmjs.com/package/object.pick): Returns a filtered copy of an object with only the specified keys, similar to `_.pick… [more](https://github.com/jonschlinkert/object.pick) | [homepage](https://github.com/jonschlinkert/object.pick \"Returns a filtered copy of an object with only the specified keys, similar to`_.pick` from lodash / underscore.\")\n* [object.pluck](https://www.npmjs.com/package/object.pluck): Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with… [more](https://github.com/jonschlinkert/object.pluck) | [homepage](https://github.com/jonschlinkert/object.pluck \"Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with values unmodified from those of the original object.\")\n* [object.reduce](https://www.npmjs.com/package/object.reduce): Reduces an object to a value that is the accumulated result of running each property… [more](https://github.com/jonschlinkert/object.reduce) | [homepage](https://github.com/jonschlinkert/object.reduce \"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/object.omit/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 27, 2016._",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jonschlinkert/object.omit.git"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha"
|
|
},
|
|
"verb": {
|
|
"related": {
|
|
"list": [
|
|
"object.defaults",
|
|
"object.filter",
|
|
"object.pick",
|
|
"object.pluck",
|
|
"object.reduce"
|
|
]
|
|
},
|
|
"toc": false,
|
|
"layout": "default",
|
|
"tasks": [
|
|
"readme"
|
|
],
|
|
"plugins": [
|
|
"gulp-format-md"
|
|
],
|
|
"lint": {
|
|
"reflinks": true
|
|
},
|
|
"reflinks": [
|
|
"verb",
|
|
"verb-generate-readme"
|
|
]
|
|
},
|
|
"version": "2.0.1"
|
|
}
|