{"name":"make-iterator","description":"Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/make-iterator","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/make-iterator.git"},"bugs":{"url":"https://github.com/jonschlinkert/make-iterator/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"dependencies":{"for-own":"^0.1.3"},"keywords":["arr","array","iterate","iterator","contains","for-own","forOwn","forown","function"],"verb":{"related":{"list":["any","arr-filter","arr-map","array-every","collection-map","utils"]}},"gitHead":"e6a9fe24d57fa610384e4e97eaa053d9cc1073b1","_id":"make-iterator@0.2.0","_shasum":"22392c93381611d8eb405beff93b80d4cbdb9b33","_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":"22392c93381611d8eb405beff93b80d4cbdb9b33","tarball":"http://registry-npm.ywwl.com/make-iterator/download/make-iterator-0.2.0.tgz","integrity":"sha512-2zkMJsflsH8iC3IKc7VBjD2lKR317ZHT4dlrzR6dZfBhkcfhL8dtSjonyCxDzBm9B355w39Ub0H/u1RWJocnQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDT3BABjzCo3gac4GkMCYrvxTUd8NL2bcIint25eQnuHAiEAiByRT1rCE0OvFn/nVh0sI8oAMkJ+GNqUyX8AEEFcJS0="}],"size":2707,"noattachment":false,"key":"/make-iterator/-/make-iterator-0.2.0.tgz"},"directories":{},"readme":"# make-iterator [![NPM version](https://img.shields.io/npm/v/make-iterator.svg?style=flat)](https://www.npmjs.com/package/make-iterator) [![NPM monthly downloads](https://img.shields.io/npm/dm/make-iterator.svg?style=flat)](https://npmjs.org/package/make-iterator) [![NPM total downloads](https://img.shields.io/npm/dt/make-iterator.svg?style=flat)](https://npmjs.org/package/make-iterator) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/make-iterator.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/make-iterator)\n\n> Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save make-iterator\n```\n\nAlthough the code has materially changed, this was originally based on the\nmake iterator function in moutjs, and externalized to a module. Thanks to the\nmoutjs team for the inspiration.\n\nCopyright (c) 2012, 2013 moutjs team and contributors (http://moutjs.com)\n\n## Usage\n\n```js\nvar iterator = require('make-iterator');\n```\n\n**Regex**\n\n```js\nvar arr = ['a', 'b', 'c', 'd', 'e', 'f'];\nvar fn = iterator(/[a-c]/);\nconsole.log(arr.filter(fn));\n//=> ['a', 'b', 'c'];\n```\n\n**Objects**\n\n```js\nvar fn =  iterator({ a: 1, b: { c: 2 } });\n\nconsole.log(fn({ a: 1, b: { c: 2, d: 3 } }));\n//=> true\nconsole.log(fn({ a: 1, b: { c: 3 } }));\n//=> false\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\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</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\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</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [breakdance](https://www.npmjs.com/package/breakdance): Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy… [more](http://breakdance.io) | [homepage](http://breakdance.io \"Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy to use. It's time for your markup to get down.\")\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/micromatch/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n* [snapdragon](https://www.npmjs.com/package/snapdragon): Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map… [more](https://github.com/here-be/snapdragon) | [homepage](https://github.com/here-be/snapdragon \"Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map support.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [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 April 08, 2018._","publish_time":1437186939543,"_cnpm_publish_time":1437186939543,"dist-tags":{"latest":"2.0.0"}}