{"_id":"omit.js","_rev":"317983","name":"omit.js","description":"Utility function to create a shallow copy of an object which had dropped some fields.","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"time":{"modified":"2021-06-03T20:08:44.000Z","created":"2016-09-10T07:27:47.869Z","2.0.2":"2020-07-08T11:39:16.711Z","2.0.1":"2020-07-08T11:37:59.841Z","2.0.0":"2020-07-08T11:24:13.408Z","1.0.2":"2019-04-10T09:03:59.212Z","1.0.1":"2019-04-08T06:37:56.011Z","1.0.0":"2017-06-30T01:59:49.157Z","0.1.0":"2016-09-10T07:27:47.869Z"},"users":{"singleframe":true,"tedyhy":true,"arcticicestudio":true},"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"versions":{"2.0.2":{"name":"omit.js","version":"2.0.2","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","types":"index.d.ts","scripts":{"start":"father doc dev --storybook","build":"father doc build --storybook","compile":"father build","gh-pages":"father doc deploy","prepublishOnly":"npm run compile && np --yolo --no-publish","lint":"eslint .","test":"father test","coverage":"father test --coverage"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","devDependencies":{"@umijs/fabric":"^2.2.2","assert":"^1.4.1","eslint":"^7.4.0","father":"^2.29.5","np":"^6.3.1","rc-tools":"^6.3.3"},"gitHead":"7969000094f09e4bd997be25acad743d295a6638","_id":"omit.js@2.0.2","_nodeVersion":"12.14.1","_npmVersion":"6.14.5","dist":{"shasum":"dd9b8436fab947a5f3ff214cb2538631e313ec2f","size":1988,"noattachment":false,"key":"/omit.js/-/omit.js-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-2.0.2.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js_2.0.2_1594208356553_0.3712500414369069"},"_hasShrinkwrap":false,"publish_time":1594208356711,"_cnpm_publish_time":1594208356711},"2.0.1":{"name":"omit.js","version":"2.0.1","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","types":"index.d.ts","scripts":{"start":"father doc dev --storybook","build":"father doc build --storybook","compile":"father build","gh-pages":"father doc deploy","prepublishOnly":"npm run compile && np --yolo --no-publish","lint":"eslint .","test":"father test","coverage":"father test --coverage"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"@babel/runtime":"^7.10.4"},"devDependencies":{"@umijs/fabric":"^2.2.2","assert":"^1.4.1","eslint":"^7.4.0","father":"^2.29.5","np":"^6.3.1","rc-tools":"^6.3.3"},"gitHead":"7eee995b8da348a677cffeec2495e2639049f5e9","_id":"omit.js@2.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.14.5","dist":{"shasum":"2beed0891922d179af90ae67ec777a767457b1d1","size":2007,"noattachment":false,"key":"/omit.js/-/omit.js-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-2.0.1.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js_2.0.1_1594208279674_0.9668880923725351"},"_hasShrinkwrap":false,"publish_time":1594208279841,"_cnpm_publish_time":1594208279841},"2.0.0":{"name":"omit.js","version":"2.0.0","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","types":"index.d.ts","scripts":{"start":"father doc dev --storybook","build":"father doc build --storybook","compile":"father build","gh-pages":"father doc deploy","prepublishOnly":"npm run compile && np --yolo --no-publish","lint":"eslint .","test":"father test","coverage":"father test --coverage"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"@babel/runtime":"^7.10.4"},"devDependencies":{"@umijs/fabric":"^2.2.2","assert":"^1.4.1","eslint":"^7.4.0","father":"^2.29.5","np":"^6.3.1","rc-tools":"^6.3.3"},"gitHead":"83fc8b2ed5ab9ec2d10f04c841d82ae6432d5da4","_id":"omit.js@2.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.5","dist":{"shasum":"325e3ff07c271841f87724fc9fff9892c687f76f","size":2342,"noattachment":false,"key":"/omit.js/-/omit.js-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-2.0.0.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js_2.0.0_1594207453286_0.9174409735262312"},"_hasShrinkwrap":false,"publish_time":1594207453408,"_cnpm_publish_time":1594207453408},"1.0.2":{"name":"omit.js","version":"1.0.2","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","types":"index.d.ts","scripts":{"compile":"rc-tools run compile --babel-runtime","test":"rc-test run test","coverage":"rc-test run coverage","lint":"rc-tools run lint","eslint-fix":"eslint --fix ./index.js ./test","build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","prepublish":"rc-tools run guard"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"babel-runtime":"^6.23.0"},"devDependencies":{"assert":"^1.4.1","rc-test":"^6.0.7","rc-tools":"^6.3.3"},"gitHead":"da11333d3ba24c74d5e1965f3b4ad3330170b92d","_id":"omit.js@1.0.2","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"shasum":"91a14f0eba84066dfa015bf30e474c47f30bc858","size":2047,"noattachment":false,"key":"/omit.js/-/omit.js-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-1.0.2.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmUser":{"name":"chenshuai2144","email":"wasd2144@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js_1.0.2_1554887039045_0.4292193395369257"},"_hasShrinkwrap":false,"publish_time":1554887039212,"_cnpm_publish_time":1554887039212},"1.0.1":{"name":"omit.js","version":"1.0.1","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","types":"index.d.ts","scripts":{"compile":"rc-tools run compile --babel-runtime","test":"rc-test run test","coverage":"rc-test run coverage","lint":"rc-tools run lint","eslint-fix":"eslint --fix ./index.js ./test","build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","prepublish":"rc-tools run guard"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"babel-runtime":"^6.23.0"},"devDependencies":{"assert":"^1.4.1","rc-test":"^6.0.7","rc-tools":"^6.3.3"},"gitHead":"351582fbdd8ebcc92d6aca619b85e5c3c6baa6d1","_id":"omit.js@1.0.1","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"shasum":"4b6ea73ef284e40cece3573555d26cde809840be","size":2043,"noattachment":false,"key":"/omit.js/-/omit.js-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-1.0.1.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmUser":{"name":"chenshuai2144","email":"wasd2144@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js_1.0.1_1554705475873_0.6548931938082991"},"_hasShrinkwrap":false,"publish_time":1554705476011,"_cnpm_publish_time":1554705476011},"1.0.0":{"name":"omit.js","version":"1.0.0","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"lib/index.js","module":"es/index.js","files":["lib","es","dist"],"scripts":{"compile":"rc-tools run compile --babel-runtime","test":"rc-test run test","coverage":"rc-test run coverage","lint":"rc-tools run lint","eslint-fix":"eslint --fix ./index.js ./test","build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub --babel-runtime","prepublish":"rc-tools run guard"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui","email":"benjytrys@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"babel-runtime":"^6.23.0"},"devDependencies":{"assert":"^1.4.1","rc-test":"^6.0.7","rc-tools":"^6.3.3"},"gitHead":"f3c09c5e6e7ffa6fd998c29b568de98a35658eeb","_id":"omit.js@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.1","_npmUser":{"name":"benjycui","email":"benjytrys@gmail.com"},"dist":{"shasum":"e013cb86a7517b9cf6f7cfb0ddb4297256a99288","size":1952,"noattachment":false,"key":"/omit.js/-/omit.js-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-1.0.0.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/omit.js-1.0.0.tgz_1498787989046_0.08826965955086052"},"directories":{},"publish_time":1498787989157,"_hasShrinkwrap":false,"_cnpm_publish_time":1498787989157},"0.1.0":{"name":"omit.js","version":"0.1.0","description":"Utility function to create a shallow copy of an object which had dropped some fields.","main":"index.js","scripts":{"test":"npm run lint && mocha","lint":"eslint ./index.js ./test","eslint-fix":"eslint --fix ./index.js ./test"},"repository":{"type":"git","url":"git+https://github.com/benjycui/omit.js.git"},"keywords":["object","omit"],"author":{"name":"Benjy Cui"},"license":"MIT","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"homepage":"https://github.com/benjycui/omit.js#readme","dependencies":{"object-assign":"^4.1.0"},"devDependencies":{"eslint":"^3.5.0","eslint-config-egg":"^3.1.0"},"gitHead":"a566dfc786443c74a9789e3bf0cf7b63cc0977a6","_id":"omit.js@0.1.0","_shasum":"9786a21a6d6c316fa35bb14e7101eeee21c52044","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"benjycui","email":"benjytrys@gmail.com"},"dist":{"shasum":"9786a21a6d6c316fa35bb14e7101eeee21c52044","size":1815,"noattachment":false,"key":"/omit.js/-/omit.js-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/omit.js/download/omit.js-0.1.0.tgz"},"maintainers":[{"name":"afc163","email":""},{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"chenshuai2144","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/omit.js-0.1.0.tgz_1473492466247_0.09573026560246944"},"directories":{},"publish_time":1473492467869,"_cnpm_publish_time":1473492467869,"_hasShrinkwrap":false}},"readme":"# omit.js\n\n[![](https://img.shields.io/travis/benjycui/omit.js.svg?style=flat-square)](https://travis-ci.org/benjycui/omit.js)\n[![npm package](https://img.shields.io/npm/v/omit.js.svg?style=flat-square)](https://www.npmjs.org/package/omit.js)\n[![NPM downloads](http://img.shields.io/npm/dm/omit.js.svg?style=flat-square)](https://npmjs.org/package/omit.js)\n[![Dependency Status](https://david-dm.org/benjycui/omit.js.svg?style=flat-square)](https://david-dm.org/benjycui/omit.js)\n\nUtility function to create a shallow copy of an object which had dropped some fields.\n\n## Usage\n\n```bash\nnpm i --save omit.js\n```\n\n```js\nvar omit = require('omit.js');\nomit({ name: 'Benjy', age: 18 }, [ 'name' ]); // => { age: 18 }\n```\n\n## API\n\n### omit(obj: Object, fields: string[]): Object\n\nReturn a shallow copy which had dropped fields.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/benjycui/omit.js#readme","bugs":{"url":"https://github.com/benjycui/omit.js/issues"},"license":"MIT"}