{"name":"random-item","version":"4.0.0","description":"Get a random item from an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/random-item.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["random","randomize","math","array","item","element","pick","select"],"devDependencies":{"ava":"^3.15.0","stable-fn":"^3.0.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"1972cbc0fc0085544cbcb7aece550407f4527aeb","bugs":{"url":"https://github.com/sindresorhus/random-item/issues"},"homepage":"https://github.com/sindresorhus/random-item#readme","_id":"random-item@4.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-++7cCUdeglZrKnfX+hXl9qHImtCoQxKRxXwhN/ftcswlvI/EcjQE+EZ01kKsALTjwUMEoCnpgXolJ+3p9gtsIA==","shasum":"cb94ca35544a03c528295b11a313afbcfcff1787","tarball":"http://registry-npm.ywwl.com/random-item/download/random-item-4.0.0.tgz","fileCount":5,"unpackedSize":3905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeSZ8CRA9TVsSAnZWagAAf5oQAIBcFNH1Sj0YEXls6t5j\nd01f6V8YnTZQ0dzzCFsWQhlpCFZdDQFbjK8mBN9dFjgvC94Ahbqpbhyneea7\n75G+NbdRbvy3AXTFrzTF1ngTFMhuOCKusy9cO2z3cHIzofIUcLpLn1/hwOiC\nnikJqT8WykPAbmWnYfNx+0pEe3idCKwsF/aVLFVKR9x+RTL58yl0ja30zZQ3\nCO+kci4XA1w6VsjZfOV1btgdKhzPFgYA8qrxCGyaMW8mKCglJP8sSTH6lBiS\nNmlYknIY/sr/p74N+fbyeb21s5FCjmGTUk+87rfFQx5eX9YbkjtKHKBtChQI\nXLFIJhQprQn7mr9ODt/sWwDl3bSzUkMXLVPzp690ny6bSFkdMtj88kuN8OhO\nD4poo5YY7uN4kfzkd9YA47OTBxNWuKj5fIGLreHYreHBb2fzo03MAW/62m6B\nrAIfEk3/o9BCYGXcEZ2UxEM5IcdWT32bjm86xvFJ+7p9MSWnq3AFGaF/qp8D\nWIRld4O09sHyrMtDkSopgWHG8T05Gf3BKfzj0iVcgIFzyxLQqidqAmqHGLcr\nIyEHBSHssAs6CCEmM2/vjz8+asqPu4NUsl+UCg3LpLMsAaJjenMTimouJbXi\n7X5n07nJ83SPyKsx0iwiUDrH68kPL8+mtVmZl4AV2pCq/l2XCkKFDQpaByDk\ns/+K\r\n=r7II\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnGXWevWeI/4GjWtOKPSRZXIMqY3YBGS/hxCy6buKmfgIhAPkIbpRcxQO1l7aKjAqkGAVPTxlD+zad3DmLbfyZhWyW"}],"size":1927,"noattachment":false,"key":"/random-item/-/random-item-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-item_4.0.0_1618552444388_0.9519011104073751"},"_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":1618552444526,"_cnpm_publish_time":1618552444526,"dist-tags":{"latest":"4.0.1"}}