{"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":{"integrity":"sha512-O6wa431Xi/Odh58lja315wdZ9jVzfNrgiRM0L1vdNMa34Kn4lR276bVTzopg3oyZAw4st+HPv4sNFNV0DOu3zQ==","shasum":"701682a89c7d13e18f40e80be3fe3a9e4d944f8d","tarball":"http://registry-npm.ywwl.com/glob-object/download/glob-object-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPdEoKIhvOyE0hhcty7bkVnRT2/6uflLgG72/d7iUzgAiEAiu/+mWyGMPpZNiAsG0FBvl/WtDLYRmLtxKJLHD0wBTA="}],"size":3492,"noattachment":false,"key":"/glob-object/-/glob-object-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-object-1.0.0.tgz_1497882182821_0.06483522499911487"},"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":1497882183742,"_cnpm_publish_time":1497882183742,"dist-tags":{"latest":"1.0.0"}}