{"name":"random-item","version":"3.1.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"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["random","randomize","math","array","item","element","pick","select"],"devDependencies":{"ava":"^1.4.1","stable-fn":"^2.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"bf0f09bf65603f1e6dc166c72675d42b589d86a7","bugs":{"url":"https://github.com/sindresorhus/random-item/issues"},"homepage":"https://github.com/sindresorhus/random-item#readme","_id":"random-item@3.1.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-0DyAT8LYBNQKSkqcPjia/HNoWCZ5JWBdAQWjBQVh5DMVv3Fv7V90I8/AuUf8NW4zdFn27i9qj8Kp6wI5JsiiOA==","shasum":"b0425646b06292059fd8aaf4bdf0c04cf426f625","tarball":"http://registry-npm.ywwl.com/random-item/download/random-item-3.1.0.tgz","fileCount":5,"unpackedSize":4003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdMUCRA9TVsSAnZWagAAazwQAJm4pLadLaICyDDRxiOY\nQ/vHj0PHfYs/2w6ZpnkBCbzeZ3pMn4evDhxm3ZBDPFouxkc0epnE4pc6bwbU\njuDGWcqpFSXA7QzwgHjrAKRqjYovv692dN2guOGxo9wZkXtIS7rGRzEzsSgz\nArRMJAjFyuMn579TNYU2zSOCvZoZ8sq0mKk4pxTJ6J7RZvXQx3OdMdxSnrR7\nJDGDoH3YwkXBVlW1/8ketcdv2f6JPSsJI1cSQP8qgPm5ZeqzKbMHjHryJoPk\nqshAEZpZvWDCL87JfILJhmdApznFho+AK6AJDKapcSlNZT5umIu7wpoghYyy\nkMLL3HQYU4fBgOWL5J/yp2rZCAg4PNeN1MJVXW9qCnfPFc0MKYf6ChFkrgrM\nLR8onFrt2dNVeLbc4nILfYNDBat3EerFcVJKI8WDJwW9T05R5RzlXZ8LziLJ\ntzSZifBpUbx+Ql+XLKa07drnnXZQ3Uc17PE7oX5Q3UfhwncqlZcSjlXKCEol\niyJCY++bXzklibjK8nIFjHgfUQ28OztNDtd6VF3wAB8muQLPSF/+FUx7Dych\nFDVRu/QWFyu+piFJPbITED8KDaKQ73C4xJSzMRDmZhKuDXNg06Ab1TYWd8+v\nCZCy35J/BkiNlpHKmHF+TlmCiKoT2AYGUWv3xuJdqNlDR1+FdTYmIbx1yDaF\nVf5m\r\n=wK/1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXpisPaj+Jqm59ugSIQMelAYedLUWFqWTnLw67KxSQEAIgL6SF+v4BpmbgI4rWqFcVaTBImEso8Xxqi5VwRwTqCDc="}],"size":1970,"noattachment":false,"key":"/random-item/-/random-item-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-item_3.1.0_1603916563576_0.23927423118491076"},"_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":1603916563681,"_cnpm_publish_time":1603916563681,"dist-tags":{"latest":"4.0.1"}}