{"name":"array-back","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"6.1.2","description":"Guarantees an array back","repository":{"type":"git","url":"git+https://github.com/75lb/array-back.git"},"license":"MIT","exports":{"import":"./index.mjs","require":"./dist/index.cjs"},"keywords":["to","convert","return","array","arrayify"],"engines":{"node":">=14"},"scripts":{"test":"npm run dist && npm run test:node","test:node":"test-runner test.mjs","test:web":"web-runner test.mjs","docs":"jsdoc2md -t README.hbs index.mjs -c jsdoc.conf > README.md","cover":"c8 npm run test:node && c8 report --reporter=text-lcov | coveralls","dist":"rollup -c"},"devDependencies":{"c8":"^7.7.3","coveralls":"^3.1.1","isomorphic-assert":"^0.2.0","jsdoc-to-markdown":"^7.0.1","rollup":"^2.52.7","test-runner":"^0.9.5"},"gitHead":"249d51a2068baf09a2dc3406016a834a0a8a642a","bugs":{"url":"https://github.com/75lb/array-back/issues"},"homepage":"https://github.com/75lb/array-back#readme","_id":"array-back@6.1.2","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-V/+UG3q3273RgjbayqQrWbdCEFJqGXa5gnvaBnDtmrFlMXQoTypYpu1DVSSrHytX1U72LzL8CkoQS9N86LV9Cw==","shasum":"e57a39091b3e8bf5dd1ad335155f81fd9e792106","tarball":"http://registry-npm.ywwl.com/array-back/download/array-back-6.1.2.tgz","fileCount":6,"unpackedSize":8670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4YdACRA9TVsSAnZWagAAUVEP+gOX6y6krPfkHfSbEmMq\nh+PZSc2Jd6r4njDRrNQU+CGC9m86TEcM/K+SGMKy1mSssUVLoLSHYN74z9Ot\nY4B0qSG8eVSYW6tjrFMybv22C/LIz/VKiachb6Mo9rCSTrx1fzZH1VIbhDYi\nnpPy5O7geg9XnXWSqoesxFWqf5O2HzrTKvUntJqUBmKxz/w2XoKTaPc3Gb/g\n9+LLfajRQzkpKKHBvHnavSmv14l6oYg6XFNT2c7vokZWO4m4daz2WtHQ5fT8\nccbOj0vy8swWrhHxbQm708RUp0+emjxXzCEcQfIMdU13Jb2L9H3s/DRdHO8H\nwdh9DeP0GMdeOoVfNamsjKeozmeqIMX1SbXnpir4MSIwrKq42DM1GLV/xKhI\nLuisexE3LJKdKP8da+2omW3PJl7xaYVSXES4t61ZnMutN+NLlwqRI0JzQEqR\nDBg7F1ZSZHRxjQPgB0J/NZyPinBl9l8U4yal5Nt/jCynL58GygnP9s9L3Uh1\n0VpMgd9WcaWuGn3WKTFGYohC64X0n02tYK4Dn/30ZCBSUPr4ewss+R4vFh3Z\nW8CsSZ0+rHyzNu4UsaeVB2tBvBq+8L1Q/5CaCsNbk4k136lmuRwAAV8S8VRY\nCm3eSsLsQFUdMC85eTV6KqOXPfjLijQ7iwYVeg0blddBqF5AoV1uS8Hzkuyh\nA8Fc\r\n=zlfr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUMVnuxiHWLulu8k5hE3AyQkzolHNTj637v2vOMKJCAAiBvatcLU5o3BJkdbCTTLPJVLejbReFcQ8blMf5pRl2xfw=="}],"size":2622,"noattachment":false,"key":"/array-back/-/array-back-6.1.2.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-back_6.1.2_1625392959580_0.004189007709172632"},"_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":1625392959716,"_cnpm_publish_time":1625392959716,"dist-tags":{"latest":"6.2.3"}}