{"_id":"deep-filter-object","_rev":"88945","name":"deep-filter-object","description":"Return a deep copy of an object, recursively filtered to have only keys that match the given glob patterns.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:28:56.000Z","created":"2014-10-24T11:09:09.671Z","1.0.0":"2015-01-20T03:40:16.288Z","0.1.0":"2014-10-24T11:09:09.671Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/deep-filter-object.git"},"versions":{"1.0.0":{"name":"deep-filter-object","description":"Return a deep copy of an object, recursively filtered to have only keys that match the given glob patterns.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/deep-filter-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/deep-filter-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-filter-object/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/deep-filter-object/blob/master/LICENSE"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"filter-object":"^1.1.0","isobject":"^0.2.0"},"devDependencies":{"mocha":"*","should":"^4.1.0"},"keywords":["filter","find","glob","key","keys","match","matcher","obj","object","prop","properties","sort"],"gitHead":"cc4de5cb2767e4cefc807ee170d7edfc2f6bc36b","_id":"deep-filter-object@1.0.0","_shasum":"b4e60581cce7b40728b99b83c73746c7edd4e6b9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b4e60581cce7b40728b99b83c73746c7edd4e6b9","size":2113,"noattachment":false,"key":"/deep-filter-object/-/deep-filter-object-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-filter-object/download/deep-filter-object-1.0.0.tgz"},"directories":{},"publish_time":1421725216288,"_cnpm_publish_time":1421725216288,"_hasShrinkwrap":false},"0.1.0":{"name":"deep-filter-object","description":"Return a deep copy of an object, recursively filtered to have only keys that match the given glob patterns.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/deep-filter-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/deep-filter-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/deep-filter-object/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/deep-filter-object/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.1.0","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["arr","array","expand","filter","find","function","glob","globbing","globs","js","key","keys","match","matcher","minimatch","obj","object","order","pattern","patterns","sort","util","utility","wildcard"],"dependencies":{"filter-object":"^0.1.3","isobject":"^0.2.0"},"_id":"deep-filter-object@0.1.0","_shasum":"9d619276b3ea6dbfe6c520bd167320a89c274749","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9d619276b3ea6dbfe6c520bd167320a89c274749","size":3220,"noattachment":false,"key":"/deep-filter-object/-/deep-filter-object-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deep-filter-object/download/deep-filter-object-0.1.0.tgz"},"directories":{},"publish_time":1414148949671,"_cnpm_publish_time":1414148949671,"_hasShrinkwrap":false}},"readme":"# deep-filter-object [![NPM version](https://badge.fury.io/js/deep-filter-object.svg)](http://badge.fury.io/js/deep-filter-object)\n\n> Return a deep copy of an object, recursively filtered to have only keys that match the given glob patterns.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i deep-filter-object --save\n```\n\n## Usage\n\n```js\nvar deepFilter = require('deep-filter-object');\n\ndeepFilter({a: 'a', b: {a: 'a', b: {a: 'a', b: 'b', c: 'c'}}}, 'b');\n//=> {b: {b: {b: 'b'}}}\n```\n\n#### Negation patterns:\n\n```js\ndeepFilter({foo: 'a', bar: {foo: 'a', bar: {foo: 'a', bar: 'b', baz: 'c'}}}, ['*', '!foo']);\n//=> {bar: {bar: {bar: 'b', baz: 'c'}}}\n```\n\n## Filter functions\n\n```js\ndeepFilter({a: 'a', b: 'b', c: 'c'}, function (value, key, obj, i) {\n  return key === 'b';\n});\n//=> {b: 'b'}\n\ndeepFilter({a: 'a', b: {c: 'c', d: {e: {c: 'c', f: 'f'}}}, c: 'c'}, function (value, key, obj) {\n  return key !== 'c';\n});\n//=> {a: 'a', b: {d: {e: {f: 'f'}}}}\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/deep-filter-object/issues).\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnpm i -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\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on January 19, 2015._\n\n[issues]: https://github.com/jonschlinkert/filter-keys/issues","_attachments":{},"homepage":"https://github.com/jonschlinkert/deep-filter-object","bugs":{"url":"https://github.com/jonschlinkert/deep-filter-object/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/deep-filter-object/blob/master/LICENSE"}}