{"_id":"filter-values","_rev":"77154","name":"filter-values","description":"Filter an object values using glob patterns or with a `callback` function returns true. ","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:49.000Z","created":"2015-01-20T00:55:47.469Z","0.4.1":"2017-05-11T15:22:20.697Z","0.4.0":"2015-09-08T05:55:07.516Z","0.3.0":"2015-07-13T16:14:21.560Z","0.2.0":"2015-03-31T18:24:59.615Z","0.1.0":"2015-01-20T00:55:47.469Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/filter-values.git"},"versions":{"0.4.1":{"name":"filter-values","description":"Filter an object values using glob patterns or with a `callback` function returns true. ","version":"0.4.1","homepage":"https://github.com/jonschlinkert/filter-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Charlike Mike Reagent","url":"https://i.am.charlike.online"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/filter-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.3","is-match":"^0.4.0"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"*","should":"*"},"keywords":["filter","find","glob","globbing","globs","key","keys","match","matcher","minimatch","obj","object","pattern","patterns","properties","property","props","regex","sort","test","wildcard"],"verb":{"related":{"list":["filter-object","filter-values","micromatch","rename-keys","sort-object"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"9f956a1396bab7af6672c259fb1f9e757e99221f","_id":"filter-values@0.4.1","_shasum":"59e6dbd5d3fd6302bd2db15c28e71bc1610ee84b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"59e6dbd5d3fd6302bd2db15c28e71bc1610ee84b","size":2936,"noattachment":false,"key":"/filter-values/-/filter-values-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-values/download/filter-values-0.4.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/filter-values-0.4.1.tgz_1494516138894_0.08200444583781064"},"directories":{},"publish_time":1494516140697,"_hasShrinkwrap":false,"_cnpm_publish_time":1494516140697},"0.4.0":{"name":"filter-values","description":"Filter an object values using glob patterns or with a `callback` function returns true. ","version":"0.4.0","homepage":"https://github.com/jonschlinkert/filter-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/filter-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.3","is-match":"^0.4.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["filter","find","glob","globbing","globs","key","keys","match","matcher","minimatch","obj","object","pattern","patterns","properties","property","props","regex","sort","test","wildcard"],"verb":{"related":{"list":["filter-object","filter-values","micromatch","rename-keys","sort-object"]}},"gitHead":"dd55adea135a29a7e8543b95d8f2de719ab94e1e","_id":"filter-values@0.4.0","_shasum":"f1b618dad908d0dd9906d27ca81620300ebf7a09","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f1b618dad908d0dd9906d27ca81620300ebf7a09","size":2357,"noattachment":false,"key":"/filter-values/-/filter-values-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-values/download/filter-values-0.4.0.tgz"},"directories":{},"publish_time":1441691707516,"_cnpm_publish_time":1441691707516,"_hasShrinkwrap":false},"0.3.0":{"name":"filter-values","description":"Filter an object values using glob patterns or with a `callback` function returns true. ","version":"0.3.0","homepage":"https://github.com/jonschlinkert/filter-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/filter-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.3","is-match":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["filter","find","glob","globbing","globs","key","keys","match","matcher","minimatch","obj","object","pattern","patterns","properties","property","props","regex","sort","test","wildcard"],"verb":{"related":{"list":["filter-object","filter-values","micromatch","rename-keys","sort-object"]}},"gitHead":"42bfc1437c5648b6896a914039db7e350ca14881","_id":"filter-values@0.3.0","_shasum":"fad154f200ea35b3425f2b12507196661346859d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fad154f200ea35b3425f2b12507196661346859d","size":2324,"noattachment":false,"key":"/filter-values/-/filter-values-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-values/download/filter-values-0.3.0.tgz"},"directories":{},"publish_time":1436804061560,"_cnpm_publish_time":1436804061560,"_hasShrinkwrap":false},"0.2.0":{"name":"filter-values","description":"Filter an object values using glob patterns or with a `callback` function returns true. ","version":"0.2.0","homepage":"https://github.com/jonschlinkert/filter-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-values/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["filter","find","glob","globbing","globs","key","keys","match","matcher","minimatch","obj","object","pattern","patterns","properties","property","props","regex","sort","test","wildcard"],"gitHead":"6721c48ddaf412e06ad6ac390bb83678fdde2c02","_id":"filter-values@0.2.0","_shasum":"e2a44f3dde490b5051264a0c4dca94495cc403ac","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e2a44f3dde490b5051264a0c4dca94495cc403ac","size":2373,"noattachment":false,"key":"/filter-values/-/filter-values-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-values/download/filter-values-0.2.0.tgz"},"directories":{},"publish_time":1427826299615,"_cnpm_publish_time":1427826299615,"_hasShrinkwrap":false},"0.1.0":{"name":"filter-values","description":"Filter an object to have only the `own` properties for which a `callback` function returns true. ","version":"0.1.0","homepage":"https://github.com/jonschlinkert/filter-values","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-values.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-values/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"dependencies":{"for-own":"^0.1.2","make-iterator":"^0.1.1"},"gitHead":"0aac111ced6dfffd3036bef6cccf3d61f7fb6e5b","_id":"filter-values@0.1.0","_shasum":"da92fd8b07eb7b73aa41c4156eb66f8e07cac511","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"da92fd8b07eb7b73aa41c4156eb66f8e07cac511","size":1827,"noattachment":false,"key":"/filter-values/-/filter-values-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-values/download/filter-values-0.1.0.tgz"},"directories":{},"publish_time":1421715347469,"_cnpm_publish_time":1421715347469,"_hasShrinkwrap":false}},"readme":"# filter-values [![NPM version](https://img.shields.io/npm/v/filter-values.svg?style=flat)](https://www.npmjs.com/package/filter-values) [![NPM monthly downloads](https://img.shields.io/npm/dm/filter-values.svg?style=flat)](https://npmjs.org/package/filter-values)  [![NPM total downloads](https://img.shields.io/npm/dt/filter-values.svg?style=flat)](https://npmjs.org/package/filter-values) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/filter-values.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/filter-values)\n\n> Filter an object values using glob patterns or with a `callback` function returns true.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save filter-values\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add filter-values\n```\n\n## Usage\n\n```js\nvar filter = require('filter-values');\n\nfilter({a: 'a', b: 'b', c: 'c'}, function(value, key, obj) {\n  return key !== 'b';\n});\n//=> {a: 'a', c: 'c'}\n\nfilter({a: 'a', b: 'b', c: 'c'}, function(value, key, obj) {\n  return key === 'b';\n});\n//=> {b: 'b'}\n\nfilter({a: 'a', b: 'b', c: 'c'}, function(value, key, obj) {\n  return value === 'b';\n});\n//=> {b: 'b'}\n\nfilter({a: 'a', b: 'bbd', c: 'bca2'}, ['b*', '!bc*'])\n//=> {b: 'bbd'}\n\nfilter({a: 'a', b: 'bbd', c: 'bca2'}, '!b*')\n//=> {a: 'a'}\n```\n\n## About\n\n### Related projects\n\n* [filter-object](https://www.npmjs.com/package/filter-object): Filter an object by its keys or values. Returns a copy of an object filtered… [more](https://github.com/jonschlinkert/filter-object) | [homepage](https://github.com/jonschlinkert/filter-object \"Filter an object by its keys or values. Returns a copy of an object filtered to have only keys or values that match the given glob patterns.\")\n* [filter-values](https://www.npmjs.com/package/filter-values): Filter an object values using glob patterns or with a `callback` function returns true.  | [homepage](https://github.com/jonschlinkert/filter-values \"Filter an object values using glob patterns or with a `callback` function returns true. \")\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n* [rename-keys](https://www.npmjs.com/package/rename-keys): Modify the names of the own enumerable properties (keys) of an object. | [homepage](https://github.com/jonschlinkert/rename-keys \"Modify the names of the own enumerable properties (keys) of an object.\")\n* [sort-object](https://www.npmjs.com/package/sort-object): Sort the keys in an object. | [homepage](https://github.com/doowb/sort-object \"Sort the keys in 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### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 13 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 5  | [tunnckoCore](https://github.com/tunnckoCore) |  \n| 3  | [someone235](https://github.com/someone235) |  \n| 1  | [doowb](https://github.com/doowb) |  \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 May 11, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/filter-values","bugs":{"url":"https://github.com/jonschlinkert/filter-values/issues"},"license":"MIT"}