{"name":"array-shuffle","version":"1.0.1","description":"Randomize the order of items in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/array-shuffle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["array","arr","list","shuffle","sort","random","rand","fisher","yates"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"4fb28db5732f8e39ae91e7b59b44bd4a189d5fab","bugs":{"url":"https://github.com/sindresorhus/array-shuffle/issues"},"homepage":"https://github.com/sindresorhus/array-shuffle#readme","_id":"array-shuffle@1.0.1","_shasum":"7ea4882a356b4bca5f545e0b6e52eaf6d971557a","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7ea4882a356b4bca5f545e0b6e52eaf6d971557a","tarball":"http://registry-npm.ywwl.com/array-shuffle/download/array-shuffle-1.0.1.tgz","integrity":"sha512-PBqgo1Y2XWSksBzq3GFPEb798ZrW2snAcmr4drbVeF/6MT/5aBlkGJEvu5A/CzXHf4EjbHOj/ZowatjlIiVidA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYT4K0E8EjDysfLN8M67ZtmsckEwYpflpRSk5FGWM06wIhAORAK2i+N7AKBwTdCBiI/CIr3VPc3DEroo3TVnlXyIRo"}],"size":1591,"noattachment":false,"key":"/array-shuffle/-/array-shuffle-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/array-shuffle-1.0.1.tgz_1466079203271_0.5538289665710181"},"directories":{},"readme":"# array-shuffle\n\n> Randomize the order of items in an array\n\nUses the [Durstenfeld algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm) which is based on the [Fisher–Yates algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle).\n\n## Install\n\n```\n$ npm install array-shuffle\n```\n\n## Usage\n\n```js\nimport arrayShuffle from 'array-shuffle';\n\nconst shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);\n//=> [3, 5, 4, 1, 2, 6]\n```\n\n## API\n\n### arrayShuffle(array)\n\n#### array\n\nType: `Array`\n\nThe array to shuffle.\n","publish_time":1466079204183,"_cnpm_publish_time":1466079204183,"dist-tags":{"latest":"4.1.0"}}