{"_id":"arraywrap","_rev":"1992884","name":"arraywrap","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"time":{"modified":"2021-12-16T17:51:15.000Z","created":"2014-11-16T20:28:50.951Z","1.1.0":"2021-11-10T14:22:00.888Z","1.0.0":"2016-11-06T01:35:20.082Z","0.2.1":"2015-12-19T15:34:37.785Z","0.2.0":"2015-08-11T18:41:16.947Z","0.1.0":"2014-11-16T20:28:50.951Z"},"users":{"kikna":true,"writeosahon":true,"mickeyzhou":true},"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"repository":{"type":"git","url":"git+https://github.com/EvanHahn/arraywrap.js.git"},"versions":{"1.1.0":{"name":"arraywrap","version":"1.1.0","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","main":"arraywrap.js","types":"arraywrap.d.ts","scripts":{"pretest":"npm run lint","lint":"npm run lint:eslint && npm run lint:prettier","lint:eslint":"eslint \"**/*.js\"","lint:prettier":"prettier --check .","format":"prettier --write .","test":"node test"},"repository":{"type":"git","url":"git+https://github.com/EvanHahn/arraywrap.js.git"},"keywords":["array","wrap","isarray"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"license":"MIT","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"homepage":"https://github.com/EvanHahn/arraywrap.js","devDependencies":{"eslint":"^8.2.0","prettier":"^2.4.1"},"gitHead":"80adb5be6e8ebc6716c655934a54d2068a59e5a9","_id":"arraywrap@1.1.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"shasum":"d367bd8ad4ab248d93ad0a87d4a36986f958e0ad","size":1735,"noattachment":false,"key":"/arraywrap/-/arraywrap-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arraywrap/download/arraywrap-1.1.0.tgz"},"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arraywrap_1.1.0_1636554120757_0.7308421457017316"},"_hasShrinkwrap":false,"publish_time":1636554120888,"_cnpm_publish_time":1636554120888},"1.0.0":{"name":"arraywrap","version":"1.0.0","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","main":"arraywrap.js","directories":{"test":"test"},"scripts":{"pretest":"standard","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/EvanHahn/arraywrap.js.git"},"keywords":["array","wrap","isarray"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"license":"MIT","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"homepage":"https://github.com/EvanHahn/arraywrap.js","devDependencies":{"mocha":"^3.1.2","standard":"^8.5.0"},"standard":{"globals":["describe","it"]},"gitHead":"f76b9ff543de5c308990e6f1e69d1fc540886bdf","_id":"arraywrap@1.0.0","_shasum":"60472a79dedc3d38bf9956a779a3848f5e668c9d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.7.0","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"dist":{"shasum":"60472a79dedc3d38bf9956a779a3848f5e668c9d","size":1917,"noattachment":false,"key":"/arraywrap/-/arraywrap-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arraywrap/download/arraywrap-1.0.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/arraywrap-1.0.0.tgz_1478396118179_0.02015314414165914"},"publish_time":1478396120082,"_cnpm_publish_time":1478396120082,"_hasShrinkwrap":false},"0.2.1":{"name":"arraywrap","version":"0.2.1","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","main":"arraywrap.js","directories":{"test":"test"},"scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/EvanHahn/arraywrap.js.git"},"keywords":["array","wrap","isarray"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"license":"MIT","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"homepage":"https://github.com/EvanHahn/arraywrap.js","devDependencies":{"mocha":"^2.3.4","standard":"^5.4.1"},"standard":{"globals":["describe","it"]},"gitHead":"b062e6bb53a0ffcedbbd7555ec2eec3d60d8fa85","_id":"arraywrap@0.2.1","_shasum":"c9daa6d36d1888f72e94b151cbe252bfae11cc20","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.2.0","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"dist":{"shasum":"c9daa6d36d1888f72e94b151cbe252bfae11cc20","size":1915,"noattachment":false,"key":"/arraywrap/-/arraywrap-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arraywrap/download/arraywrap-0.2.1.tgz"},"publish_time":1450539277785,"_cnpm_publish_time":1450539277785,"_hasShrinkwrap":false},"0.2.0":{"name":"arraywrap","version":"0.2.0","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","main":"arraywrap.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/EvanHahn/arraywrap.js.git"},"keywords":["array","wrap","isarray"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"license":"MIT","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"homepage":"https://github.com/EvanHahn/arraywrap.js","devDependencies":{"mocha":"^2.0.1"},"gitHead":"81b8b27aa4820c9c04aa0e69269eb3549943c352","_id":"arraywrap@0.2.0","_shasum":"52dffca8707bd86b520a3122d66094194e406a2d","_from":".","_npmVersion":"2.13.4","_nodeVersion":"0.12.7","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"dist":{"shasum":"52dffca8707bd86b520a3122d66094194e406a2d","size":2889,"noattachment":false,"key":"/arraywrap/-/arraywrap-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arraywrap/download/arraywrap-0.2.0.tgz"},"publish_time":1439318476947,"_cnpm_publish_time":1439318476947,"_hasShrinkwrap":false},"0.1.0":{"name":"arraywrap","version":"0.1.0","description":"if it's not an array, wrap it in an array. if it's already an array, do nothing.","main":"arraywrap.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/EvanHahn/arraywrap.js.git"},"keywords":["array","wrap","isarray"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"license":"MIT","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"homepage":"https://github.com/EvanHahn/arraywrap.js","devDependencies":{"mocha":"^2.0.1"},"gitHead":"f7b021667f822ccc9768ab4e5956aed969f9d551","_id":"arraywrap@0.1.0","_shasum":"4da54e682ed4504fe5f467c9fb5be89c961f5430","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"dist":{"shasum":"4da54e682ed4504fe5f467c9fb5be89c961f5430","size":2097,"noattachment":false,"key":"/arraywrap/-/arraywrap-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arraywrap/download/arraywrap-0.1.0.tgz"},"publish_time":1416169730951,"_cnpm_publish_time":1416169730951,"_hasShrinkwrap":false}},"readme":"# array wrap dot js\n\n[![npm version](https://badge.fury.io/js/arraywrap.svg)](http://badge.fury.io/js/arraywrap)\n\nIf it's not an array, make it one:\n\n```js\narrayWrap(123); // => [123]\narrayWrap(\"yo\"); // => ['yo']\narrayWrap(null); // => [null]\narrayWrap(undefined); // => [undefined]\narrayWrap(); // => []\n```\n\nIf it's already an array, do nothing:\n\n```js\narrayWrap([1, 2, 3]); // => [1, 2, 3]\narrayWrap([]); // => []\n\nvar arr = [1, 2];\narrayWrap(arr) === arr; // true\n```\n\nTo use it in Node/Browserify/Webpack:\n\n```js\nvar arrayWrap = require(\"arraywrap\");\narrayWrap(47);\n```\n\nTo use it in the browser:\n\n```html\n<script src=\"arraywrap.js\"></script>\n<script>\n  arrayWrap(47);\n</script>\n```\n\nThis should support environments that don't have `Array.isArray` (like IE8 and below).\n","_attachments":{},"homepage":"https://github.com/EvanHahn/arraywrap.js","bugs":{"url":"https://github.com/EvanHahn/arraywrap.js/issues"},"license":"MIT"}