{"name":"random-item","version":"4.0.1","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":"a052300cc009d73a8f7df589c4fc339cbaae6ddd","bugs":{"url":"https://github.com/sindresorhus/random-item/issues"},"homepage":"https://github.com/sindresorhus/random-item#readme","_id":"random-item@4.0.1","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-52SyTkFhFm6YP6MN9U5+txr8lBN5/fE2+xjzp1snaDzDNHN8a6Lu/G9fSc3gvD1+bmT+kIS7A0EP9QJQgRBfsg==","shasum":"bd72eae54c6051e76ea509e671f6776e1d4199bb","tarball":"http://registry-npm.ywwl.com/random-item/download/random-item-4.0.1.tgz","fileCount":5,"unpackedSize":3907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq4M5CRA9TVsSAnZWagAAwq4P/ifR+pkSgthoIUpXjyRf\nIIMPXunTxxuDgaqdWIDPgsDyTFi6Y2XB1ryV70oU8iIlBAB1E85wgHrBxw18\niaewkr4EKZu+R9CqdLTwvzDLWqpfCdj0OkHW1p6u2qpep2EDQP39XBZ5PA3c\nvxMT1uFuO6NOjAh2MZ6qiaEAdnrvSn33pmYy8zLpYb2Ec1PwSGy3Jw+/z3MN\npZjA29XpuUy9dYEM6Hdfc5txnO9LjzKxqjnWTOKzCrf1U452Sf4gV2wGgkDV\nALZVX0uGPgdWVUPAPMBkZi8l/IKVK9lEAuaHy1LHb7feP/hI2rilrOoYXhku\nGApSD/gQqdFM4VhD1QBOkoipCRvKPQofW2zE4/J6Oya3SCtO1bgySlITBIy7\nRhkV3RRYf5+HyXoK0QMGlP+V3/KY7SlsDG4E1eUTFaJEghyJ+RTusmw0M+QK\nOHfM487G3hKUynk5h1RR0PA47vlnPnVVM7qmbnDucplfboZ1ww89NRGryJ9g\nAODS6rzwlsKREDcldQf6AmCHImq5mTuzUOu+pQ3G2EhWIOxg4IDL5sxbHhV8\nKOWy3aW/kyjub0GxbPA4RckHi/z1sx7LEWRIjDaMX0/nqHbJCxRlvSR8odyH\n28eolcucirA0j33mnsP1LxAizauNse6qUgztH2GwlDwtH97hTAzM4mmDkiUu\n7fto\r\n=xty5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXrOZc2wiw4sAlJV4TcmuDETiAicB0xam8j7OV7vM5TAiA3YYHgREONi8XIGY3PHMhVR/sA9HVbxMBk/silua0H1g=="}],"size":1908,"noattachment":false,"key":"/random-item/-/random-item-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-item_4.0.1_1621852985014_0.27948633702736747"},"_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":1621852985157,"_cnpm_publish_time":1621852985157,"dist-tags":{"latest":"4.0.1"}}