{"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","tarball":"http://registry-npm.ywwl.com/glob-object/download/glob-object-0.1.1.tgz","integrity":"sha512-zctHMDh+vYg67wssgg3JstUw7CUOS80jgerFLabufALu33fP+yCVlng/YBprnoRfXM47fCQdm8GOl3ZjtYjf7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrs081gm0HkGt4IA7Z/p7lhs4Apbkw4gVUeiTUJTU1GAiA1bwFFmUF4xszlR6vpYBwpU6+zCQrKpKVO/PSl/kyZ7A=="}],"size":2771,"noattachment":false,"key":"/glob-object/-/glob-object-0.1.1.tgz"},"directories":{},"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._","publish_time":1440514308501,"_cnpm_publish_time":1440514308501,"dist-tags":{"latest":"1.0.0"}}