{"name":"array-back","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.1.0","description":"Guarantees an array back","repository":{"type":"git","url":"git+https://github.com/75lb/array-back.git"},"license":"MIT","main":"dist/index.js","keywords":["to","convert","return","array","arrayify"],"engines":{"node":">=6"},"scripts":{"test":"npm run test:esm && npm run test:js","test:esm":"node --experimental-modules test.mjs","test:js":"npm run dist:test && node dist/test.js","docs":"jsdoc2md -t README.hbs index.mjs -c build/jsdoc.conf > README.md; echo","cover":"nyc test-runner test.js && nyc report --reporter=text-lcov | coveralls","dist":"rollup -c build/index.config.js","dist:test":"rollup -c build/test.config.js","lint":"standard **/*.mjs"},"dependencies":{},"devDependencies":{"coveralls":"^3.0.3","jsdoc-to-markdown":"^4.0.1","rollup":"^1.9.0","test-runner":"^0.5.1"},"standard":{"ignore":["dist","build"]},"gitHead":"37c2534c3d4d01af74153542920a467e854999d7","bugs":{"url":"https://github.com/75lb/array-back/issues"},"homepage":"https://github.com/75lb/array-back#readme","_id":"array-back@3.1.0","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==","shasum":"b8859d7a508871c9a7b2cf42f99428f65e96bfb0","tarball":"http://registry-npm.ywwl.com/array-back/download/array-back-3.1.0.tgz","fileCount":6,"unpackedSize":8954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqSkSCRA9TVsSAnZWagAAid8P/2CCGAOk4LzZWBsw71Jm\nk669JGLLzJt7GOgcY699kK9nKkxbS8Z4yu1eLpBxi8nuvv83SZ29P2RsMON3\nKJJ8nwcSQi1bhg/hSjvFIEeQME9ubL0HGkuiZyIGLSC5ndFWB2bE6Cs9d5jk\nDG9A6pmSSgOqnnB7OUCZAwc2CqMkjPYEza+lcqApyNdQO09SFBjNhTpBqL42\nPNYhjMuXP+mdPQ6bKOJQFsHeHXeba8LePnihUS8cigxklvFFl3jfantfLy64\n9XuLmjaHpkmzDT3o+Fnxp5vQK55lTPHRqzxfaYiJFrArrBGDX36NdQ96VL04\n0+LUX6EuFwTrwA99DqvgHfkL9BfHmflRpxFgMXlQ7tcs7Ss0iV7tFSe12k/C\nI69bM4S5iYXGjLFPitnt40JuMD6idA3KUQSKWs29BfCq/0lq+G6DsweyTMxn\nXSj2Fi7Nh2GK4FXbFK3sK7oXZrHfmVwbV/zSLIAsxbTHz1EIoESpQ7an6qa/\nPM0F3tvf3hKHqPM1guqcAfPNQN6wWKRRRZHluslH0s6/YnBK/xVeXbxUo6/N\nE2nL9Y4bZVlzfbznllDstXIGcFa/5Gdqsod1RmARHgFSQ5Iq1q8RV/1SD0aZ\nmfkvtJSeQp6DoXcsZa85aw99W2pKsFe2h8e6dTX3yOz8micUq8aRccVOBUZJ\nTnlk\r\n=hC+Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/eUR6ZEVyIwgF4sDikNlMf7iRqsRvi6xDktLV6Xn9RAiAfAy6PBwAVVBsiL6lqELh4+nHEQrEUWv46vvPD9z8QRA=="}],"size":2939,"noattachment":false,"key":"/array-back/-/array-back-3.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-back_3.1.0_1554589969637_0.10751983596704595"},"_hasShrinkwrap":false,"readme":"[![view on npm](https://badgen.net/npm/v/array-back)](https://www.npmjs.org/package/array-back)\n[![npm module downloads](https://badgen.net/npm/dt/array-back)](https://www.npmjs.org/package/array-back)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/array-back/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/array-back/actions/workflows/node.js.yml)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/array-back/badge.svg)](https://coveralls.io/github/75lb/array-back)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_array-back\"></a>\n\n## array-back\nTakes any input and guarantees an array back.\n\n- Converts array-like objects (e.g. `arguments`, `Set`) to a real array.\n- Converts `undefined` to an empty array.\n- Converts any another other, singular value (including `null`, objects and iterables other than `Set`) into an array containing that value.\n- Ignores input which is already an array.\n\n**Example**  \n```js\n> const arrayify = require('array-back')\n\n> arrayify(undefined)\n[]\n\n> arrayify(null)\n[ null ]\n\n> arrayify(0)\n[ 0 ]\n\n> arrayify([ 1, 2 ])\n[ 1, 2 ]\n\n> arrayify(new Set([ 1, 2 ]))\n[ 1, 2 ]\n\n> function f(){ return arrayify(arguments); }\n> f(1,2,3)\n[ 1, 2, 3 ]\n```\n<a name=\"exp_module_array-back--arrayify\"></a>\n\n### arrayify(input) ⇒ <code>Array</code> ⏏\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>\\*</code> | The input value to convert to an array |\n\n\n### Load anywhere\n\nThis library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.\n\nNode.js:\n\n```js\nconst arrayify = require('array-back')\n```\n\nWithin Node.js with ECMAScript Module support enabled:\n\n```js\nimport arrayify from 'array-back'\n```\n\nWithin an modern browser ECMAScript Module:\n\n```js\nimport arrayify from './node_modules/array-back/index.js'\n```\n\n* * *\n\n&copy; 2015-22 [Lloyd Brookes](https://github.com/75lb) \\<75pound@gmail.com\\>.\n\nIsomorphic test suite by [test-runner](https://github.com/test-runner-js/test-runner) and [web-runner](https://github.com/test-runner-js/web-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","publish_time":1554589969788,"_cnpm_publish_time":1554589969788,"dist-tags":{"latest":"6.2.3"}}