{"name":"lazy-arrayify","version":"0.0.0","description":"We are lazy, also lazy-cached and browserify ready - just arrayify, falsey values returns empty array.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/lazy-arrayify.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"isarray":"^1.0.0","lazy-cache":"^2.0.0"},"devDependencies":{"assertit":"^0.1.0","pre-commit":"*"},"files":["index.js"],"keywords":["lazy-arrayify"],"verb":{"run":true,"toc":false,"layout":"empty","tasks":["readme"],"lint":{"reflinks":true}},"bugs":{"url":"https://github.com/tunnckocore/lazy-arrayify/issues"},"homepage":"https://github.com/tunnckocore/lazy-arrayify#readme","_id":"lazy-arrayify@0.0.0","_shasum":"c81b63dc9c87d9f5e676ad92535a10fd61eb21aa","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"c81b63dc9c87d9f5e676ad92535a10fd61eb21aa","tarball":"http://registry-npm.ywwl.com/lazy-arrayify/download/lazy-arrayify-0.0.0.tgz","integrity":"sha512-ALgMaD3l9u1ES46i6+swfoNSXfWFa2Aqf6U450AytPr8vlWKs352Rtve6lvgIcsjrBNP6KQnjd2DbY4qcPPfkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGMbXbFas/8eZrC9Ovkcez5uW7MazylZq7eIEuZcQAEwIhALZU+uo0Jaxivd3srDYezVs5/QQMj44nMye+3vUY7a1f"}],"size":1766,"noattachment":false,"key":"/lazy-arrayify/-/lazy-arrayify-0.0.0.tgz"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lazy-arrayify-0.0.0.tgz_1461900419961_0.5853529816959053"},"directories":{},"readme":"# [lazy-arrayify][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] [![npm downloads][downloads-img]][downloads-url]  \n\n> We are lazy, also [lazy-cache][]d and [browserify][]-ready - just arrayify, falsey values returns empty array. In bonus with `.isArray` method.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n## Install\n```\nnpm i lazy-arrayify --save\n```\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nconst lazyArrayify = require('lazy-arrayify')\n```\n\n### [.isArray](index.js#L52)\n> Check if value is array using the [isarray][] module.\n\n**Params**\n\n* `val` **{Mixed}**    \n* `returns` **{Boolean}**  \n\n**Example**\n\n```js\nvar isArray = require('lazy-arrayify').isArray\n\nconsole.log(isArray(1234))        // => false\nconsole.log(isArray('str'))       // => false\nconsole.log(isArray(null))        // => false\nconsole.log(isArray())            // => false\nconsole.log(isArray(0))           // => false\nconsole.log(isArray(false))       // => false\nconsole.log(isArray([null, 123])) // => true\nconsole.log(isArray([null]))      // => true\nconsole.log(isArray([false]))     // => true\n```\n\n### [.arrayify](index.js#L83)\n> Returns empty array on falsey values.\n\n**Params**\n\n* `val` **{Mixed}**    \n* `returns` **{Array}**  \n\n**Example**\n\n```js\nvar arrayify = require('lazy-arrayify').arrayify\n\nconsole.log(arrayify(1234))        // => [1234]\nconsole.log(arrayify('str'))       // => ['str']\nconsole.log(arrayify(null))        // => []\nconsole.log(arrayify())            // => []\nconsole.log(arrayify(0))           // => []\nconsole.log(arrayify(false))       // => []\nconsole.log(arrayify([null, 123])) // => [null, 123]\nconsole.log(arrayify([false]))     // => [false]\n```\n\n## Related\n* [arrify](https://www.npmjs.com/package/arrify): Convert a value to an array | [homepage](https://github.com/sindresorhus/arrify)\n* [isarray](https://www.npmjs.com/package/isarray): Array#isArray for older browsers | [homepage](https://github.com/juliangruber/isarray)\n* [limon](https://www.npmjs.com/package/limon): The pluggable JavaScript lexer on per character basis. | [homepage](https://github.com/limonjs/limon)\n* [limon-prev-next](https://www.npmjs.com/package/limon-prev-next): Plugin for [limon][] pluggable lexer that adds `prev` and `next` methods. | [homepage](https://github.com/limonjs/limon-prev-next)\n* [postjson](https://www.npmjs.com/package/postjson): Transforming JSON with plugins. | [homepage](https://github.com/postjson/postjson)\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/lazy-arrayify/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n[lazy-cache]: https://github.com/jonschlinkert/lazy-cache\n[browserify]: https://github.com/substack/node-browserify\n[limon]: https://github.com/limonjs/limon\n[isarray]: https://github.com/juliangruber/isarray\n\n[npmjs-url]: https://www.npmjs.com/package/lazy-arrayify\n[npmjs-img]: https://img.shields.io/npm/v/lazy-arrayify.svg?label=lazy-arrayify\n\n[license-url]: https://github.com/tunnckoCore/lazy-arrayify/blob/master/LICENSE\n[license-img]: https://img.shields.io/npm/l/lazy-arrayify.svg\n\n[downloads-url]: https://www.npmjs.com/package/lazy-arrayify\n[downloads-img]: https://img.shields.io/npm/dm/lazy-arrayify.svg\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/lazy-arrayify\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/lazy-arrayify.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/lazy-arrayify\n[travis-img]: https://img.shields.io/travis/tunnckoCore/lazy-arrayify/master.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/lazy-arrayify\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/lazy-arrayify.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/lazy-arrayify\n[david-img]: https://img.shields.io/david/tunnckoCore/lazy-arrayify.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg\n\n","publish_time":1461900422268,"_cnpm_publish_time":1461900422268,"dist-tags":{"latest":"1.0.3"}}