{"name":"random-item","version":"2.0.0","description":"Get a random item from an Iterable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/random-item.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["random","randomize","math","array","iterable","item","element","pick","select"],"devDependencies":{"ava":"^1.4.1","stable-fn":"^2.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"9f001f8bec1d369dfefe66ad273ca32b821e101c","bugs":{"url":"https://github.com/sindresorhus/random-item/issues"},"homepage":"https://github.com/sindresorhus/random-item#readme","_id":"random-item@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-7jP6OUN2Og5Ps+M/uXK1+ODaa6K7FpWnru7qKMvuhKcvfqfXM9sNo6KRkvkYWN2uxv63lagXKKg+m3dAEuPnjw==","shasum":"5429b84d98f46f7b0d5c2d5e2b72606f20244610","tarball":"http://registry-npm.ywwl.com/random-item/download/random-item-2.0.0.tgz","fileCount":5,"unpackedSize":3823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrt97CRA9TVsSAnZWagAAdQQQAI2rQ8VsReVJtb2zgNoa\nE1Ubjj6fyfTXDG3YLvQZsN9pbrj5HJBvSjCuEsofrrjE9aN29KHHXgXAy9Z0\nlXiq223q7LED6trcxO98HLeebu2XaDiBCPwW9jTbcqq34KexNy3D6ZMrcycL\nSUSQEQNGTUEu52tSniv0km6uv01837IK47k7sNjS3ic8bha4x84n42HF6tj3\nYwqusM79aRanfRj6xaqt2EK7gWeXWz3xkDUQXYB0FFL5RKp1g25M5+cvBs9C\n3LbE5LSLhLD2EdrPssM7BA4Tc78hqpdjXBVsg9/VxGEcKMcgqATiGu7ZklxF\ndAfB36px3fLJ5SdcOoBtZoKmoN/B6lg9xfVZKPup1G7A8q6jS2Jh4ExnPdkP\nhXnQulkAUKWJxtKrf+hTvRFWz8ykwN8kB3C2S1pA5I9CBNr6mq/DMSnWrF5x\n0G7Hd+u7faPPCpyRwTP6Tgm4XoxyBjA1gQxyjTjw3US8HreA5mcwcJgPUKCz\nbDR6DIYNscxgl/7aop05Apg9thtF/swK0sbAT2snkO5IOJxBH1wfgO09KngR\nBUXDuNc0/uSDft7UHQpapbRRMWi+N9qsaAfuQ41g8tdRDEKWlrVkVM7+Ous+\nEf2CLZ+N/f5QyjfQYQaQGCxa6JHD9vsDmcImGgZ/2ktXHUCQbuSgt69cyM+Q\n5ldP\r\n=Wlk2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+s4xRe7qGE0/tX4pUIQ9l/CSog4+07pvQLRTL6W7PmAiEAgoxx/vZwTnUllzPpFTk5189YHi1cykbCVxNKj9O5gqY="}],"size":1885,"noattachment":false,"key":"/random-item/-/random-item-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-item_2.0.0_1554964346569_0.8017034844449062"},"_hasShrinkwrap":false,"readme":"# random-item\n\n> Get a random item from an array\n\n## Install\n\n```\n$ npm install random-item\n```\n\n## Usage\n\n```js\nimport randomItem from 'random-item';\n\nrandomItem(['🐴', '🦄', '🌈']);\n//=> '🦄'\n\nrandomItem.multiple(['🐴', '🦄', '🌈'], 2);\n//=> ['🌈', '🦄']\n```\n\n## Related\n\n- [random-int](https://github.com/sindresorhus/random-int) - Generate a random integer\n- [random-float](https://github.com/sindresorhus/random-float) - Generate a random float\n- [random-obj-key](https://github.com/sindresorhus/random-obj-key) - Get a random key from an object\n- [random-obj-prop](https://github.com/sindresorhus/random-obj-prop) - Get a random property from an object\n- [unique-random](https://github.com/sindresorhus/unique-random) - Generate random numbers that are consecutively unique\n- [unique-random-array](https://github.com/sindresorhus/unique-random-array) - Get consecutively unique elements from an array\n- [crypto-random-string](https://github.com/sindresorhus/crypto-random-string) - Generate a cryptographically strong random string\n","publish_time":1554964346690,"_cnpm_publish_time":1554964346690,"dist-tags":{"latest":"4.0.1"}}