{"_id":"glob-object","_rev":"101821","name":"glob-object","description":"Filter an object using glob patterns and dot notation.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:35:37.000Z","created":"2015-08-25T14:51:48.501Z","1.0.0":"2017-06-19T14:23:03.742Z","0.1.3":"2016-05-15T07:50:57.817Z","0.1.2":"2016-03-19T07:48:04.726Z","0.1.1":"2015-08-25T14:51:48.501Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/glob-object.git"},"versions":{"1.0.0":{"name":"glob-object","description":"Filter an object using glob patterns and dot notation.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/glob-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/glob-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/glob-object/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"arr-unique":"^1.0.2","clone-deep":"^0.3.0","get-value":"^2.0.6","micromatch":"^3.0.3","set-value":"^1.0.0","stringify-keys":"^0.3.0","unset-value":"^1.0.0"},"keywords":["dot","filter","get","glob","globstar","key","keys","match","notation","object","object-path","path","paths","pattern","set","star","wildcard"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["expand-object","get-value","has-value","set-value","stringify-keys"]},"reflinks":["verb"],"lint":{"reflinks":true}},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"gitHead":"d97cc5b1032b81c50dc1412d36719dda582958b0","_id":"glob-object@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"701682a89c7d13e18f40e80be3fe3a9e4d944f8d","size":3492,"noattachment":false,"key":"/glob-object/-/glob-object-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-object/download/glob-object-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-object-1.0.0.tgz_1497882182821_0.06483522499911487"},"directories":{},"publish_time":1497882183742,"_hasShrinkwrap":false,"_cnpm_publish_time":1497882183742},"0.1.3":{"name":"glob-object","description":"Filter an object using glob patterns and dot notation.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/glob-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/glob-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/glob-object/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.5","kind-of":"^3.0.3","lazy-cache":"^2.0.1","micromatch":"^2.3.8","set-value":"^0.3.3","stringify-keys":"^0.3.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5","should":"^8.2.2"},"keywords":["dot","filter","get","glob","globstar","key","keys","match","notation","object","object-path","path","paths","pattern","set","star","wildcard"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["set-value","get-value","has-value","expand-object","stringify-keys"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"f422ca1576c65cdee9d1f5d3a4ec277f147d5f1d","_id":"glob-object@0.1.3","_shasum":"8633b97592796c19bec13fb192a23812e29cad82","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8633b97592796c19bec13fb192a23812e29cad82","size":3020,"noattachment":false,"key":"/glob-object/-/glob-object-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-object/download/glob-object-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/glob-object-0.1.3.tgz_1463298655919_0.7847987245768309"},"directories":{},"publish_time":1463298657817,"_cnpm_publish_time":1463298657817,"_hasShrinkwrap":false},"0.1.2":{"name":"glob-object","description":"Filter an object using glob patterns and dot notation.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/glob-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/glob-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/glob-object/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.3","kind-of":"^3.0.2","lazy-cache":"^1.0.3","micromatch":"^2.3.7","set-value":"^0.3.3","stringify-keys":"^0.3.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5","should":"^8.2.2"},"keywords":["dot","filter","get","glob","globstar","key","keys","match","notation","object","object-path","path","paths","pattern","set","star","wildcard"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["set-value","get-value","has-value","expand-object","stringify-keys"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"462104b3d37b76dcba9a1673b78f1d3400af0243","_id":"glob-object@0.1.2","_shasum":"1ed0d31ba1481fa8da80baae1d742f12286e79ff","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1ed0d31ba1481fa8da80baae1d742f12286e79ff","size":2974,"noattachment":false,"key":"/glob-object/-/glob-object-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-object/download/glob-object-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/glob-object-0.1.2.tgz_1458373682226_0.7039083137642592"},"directories":{},"publish_time":1458373684726,"_cnpm_publish_time":1458373684726,"_hasShrinkwrap":false},"0.1.1":{"name":"glob-object","description":"Filter an object using glob patterns and dot notation.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/glob-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/glob-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/glob-object/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^1.1.5","kind-of":"^2.0.1","lazy-cache":"^0.2.3","micromatch":"^2.2.0","set-value":"^0.2.0","stringify-keys":"^0.2.0"},"devDependencies":{"mocha":"^2.2.5","should":"^7.0.4"},"keywords":["dot","filter","get","glob","globstar","key","keys","match","notation","object","object-path","path","paths","pattern","set","star","wildcard"],"verb":{"related":{"list":["set-value","get-value","has-value","expand-object","stringify-keys"]}},"gitHead":"bc4865067dd89f5d540e1972130373b3ee583714","_id":"glob-object@0.1.1","_shasum":"51d6d41d01cd9d8f0e7e4f50379b54a9461651c7","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"51d6d41d01cd9d8f0e7e4f50379b54a9461651c7","size":2771,"noattachment":false,"key":"/glob-object/-/glob-object-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-object/download/glob-object-0.1.1.tgz"},"directories":{},"publish_time":1440514308501,"_cnpm_publish_time":1440514308501,"_hasShrinkwrap":false}},"readme":"# glob-object [![NPM version](https://img.shields.io/npm/v/glob-object.svg?style=flat)](https://www.npmjs.com/package/glob-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/glob-object.svg?style=flat)](https://npmjs.org/package/glob-object) [![NPM total downloads](https://img.shields.io/npm/dt/glob-object.svg?style=flat)](https://npmjs.org/package/glob-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/glob-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/glob-object)\n\n> Filter an object using glob patterns and dot notation.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save glob-object\n```\n\n## Usage\n\n```js\nvar globObject = require('glob-object');\n\nglobObject('a.*.f', {a: {b: {c: 'd'}, e: {f: 'g'}}});\n//=> { a: { e: { f: 'g' } } }\n```\n\n## Examples\n\nGiven the following object:\n\n```js\nvar obj = {\n  a: {\n    b: {\n      c: 'd',\n      e: 'f',\n      g: 'h',\n      i: {j: 'k'},\n      l: {g: 'k'}\n    },\n    i: 'j'\n  }\n};\n```\n\n## match properties using wildcards\n\n```js\nglobObject('*', obj);\n//=> obj (matches all keys)\n```\n\n## match properties using braces\n\n```js\nglobObject('a.*.{c,e}', obj);\n//=> {a: {b: {c: 'd', e: 'f'}}}\n```\n\n## match a nested property using a wildcard\n\nA single star will match one level of the object:\n\n```js\nglobObject('a.*.g', obj);\n//=> {a: {b: {g: 'h'}}}\n```\n\n## match deep properties using globstars\n\nA double star will match to any depth (note that the single star in the previous example did not match `a.b.l.g`):\n\n```js\nglobObject('a.**.g', obj);\n//=> {a: {b: {g: 'h', l: {g: 'k'}}}}\n```\n\n## About\n\n### Related projects\n\n* [expand-object](https://www.npmjs.com/package/expand-object): Expand a string into a JavaScript object using a simple notation. Use the CLI or… [more](https://github.com/jonschlinkert/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object \"Expand a string into a JavaScript object using a simple notation. Use the CLI or as a node.js lib.\")\n* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value \"Use property paths (`a.b.c`) to get a nested value from an object.\")\n* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value \"Returns true if a value exists, false if empty. Works with deeply nested values using object paths.\")\n* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value \"Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\")\n* [stringify-keys](https://www.npmjs.com/package/stringify-keys): Build an array of key paths from an object. | [homepage](https://github.com/doowb/stringify-keys \"Build an array of key paths from an object.\")\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 project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 19, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/glob-object","bugs":{"url":"https://github.com/jonschlinkert/glob-object/issues"},"license":"MIT"}