{"_id":"@chancejs/integer","name":"@chancejs/integer","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@chancejs/integer","version":"1.0.0","description":"Generate a random integer with Chance.js.","homepage":"https://chancejs.com/basics/integer.html","author":{"name":"Victor Quinn","email":"mail@victorquinn.com"},"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","scripts":{"clean":"rm -rf ./node_modules ./lib ./coverage","lint":"eslint","test":"jest","coverage":"yarn test --coverage","tsc":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","prepublish":"yarn build","build":"yarn clean && yarn tsc","prepare":"yarn build"},"repository":{"type":"git","url":"git+https://github.com/chancejs/chancejs.git"},"license":"MIT","bugs":{"url":"https://github.com/chancejs/chancejs/issues"},"devDependencies":{"@types/jest":"^27.4.1","@types/node":"^18.7.2","eslint":"^8.14.0","jest":"^27.5.1","ts-jest":"^27.1.4","ts-node":"^10.7.0","typescript":"^4.6.3"},"dependencies":{"@chancejs/generator":"1.0.0"},"types":"./lib/cjs/index.d.ts","gitHead":"06566eaa2bc1406f63f76a932eb8794c97788451","_id":"@chancejs/integer@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-d1c6Km4kd4l/cm1DH390vWAdmB42tZjzAnA4VrEH0AV7MsmiwTFKv0y0Ju8z3YLo7VGFdvKQkunBzwHGpi8ceg==","shasum":"adcb011bb213f0fbc90e2a235876fb20162c1478","tarball":"https://registry.npmjs.org/@chancejs/integer/-/integer-1.0.0.tgz","fileCount":17,"unpackedSize":6798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWdxiu310uKJyqLCGbNOjySrKvmlTdpTcg/qoUBjDmcgIhAPnaVbm4nbYaopsr0ofQG8MJ0/wI58LvEONg2bLMX1Nz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6+qlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrnA/+K5TtHW83QWfCRS2RrtxnC536FRnr/8m5uTzjoZeCsDNKmbta\r\nt/rCcah0sAwGl3N9g8vftrHsmC4xd270Zc8wSXIxUgC177KgMiX4MxeDCkKq\r\nZuCivFAXtujuves2Ygi5GMynDb6z78GDhqk0XI9wRKAC5BWLxG/FQCaZuYiX\r\nB4jGtYXpmY4vM+gaRCVa8WVNIes2r/0YIAW0rQ+QvastRRfQ6sMcLdvP+I2g\r\nmVBVEDnp6cNeR9eaa3UdGAHJELpmEFUtGCTX/GzMCdITra701f+NvnZHy0jd\r\nGL+4LXcUzWqgLDptCR1S/pjKSAqrQYPoVCGIXY/D0YQB/v7qFfVFeeK+gePp\r\n8XSFTKRhBrhOe/8G8c4ZNsuxTzaR9p/b+x3sYxz1d5ZlAl5jW46EKeRh7NeB\r\nUXwHrZ+mqXfcnz9c83tacB8w6SsCVVbTxnBGZHWT3IfWS+l6VWT20ezYk/Lc\r\nC2TtlBEiZ8vHK9Dzn8qik1Z6TAjvKCcBz4ILMyIxTzhI6PS+ipa3cx1hGgAh\r\nfRGOPpCZJFR3wnSoXSKP2ftLhTDXqcWItZTuYISqRiDxjw3UMIOT1ALggw8H\r\nKSB+EhjAcDCwDi/cNcOH4fObE+FWSKkeypOBWlXUNmxfJ1KWAZ8K9iIo86nZ\r\ndg0AiHzFuU6CRyuHDiQu1/fDzrk9mAWf8u0=\r\n=bbWo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"victorquinn","email":"mail@victorquinn.com"},"directories":{},"maintainers":[{"name":"victorquinn","email":"mail@victorquinn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/integer_1.0.0_1676405413244_0.62740479686479"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-14T20:10:13.157Z","1.0.0":"2023-02-14T20:10:13.384Z","modified":"2023-02-14T20:10:13.593Z"},"maintainers":[{"name":"victorquinn","email":"mail@victorquinn.com"}],"description":"Generate a random integer with Chance.js.","homepage":"https://chancejs.com/basics/integer.html","repository":{"type":"git","url":"git+https://github.com/chancejs/chancejs.git"},"author":{"name":"Victor Quinn","email":"mail@victorquinn.com"},"bugs":{"url":"https://github.com/chancejs/chancejs/issues"},"license":"MIT","readme":"# integer\n\n```js\n// usage\nchance.integer()\nchance.integer({ min: -20, max: 20 })\n```\n\n<p class=\"pullquote\">9007199254740991 is 2^53 - 1 and is the largest number value in JavaScript</p>\n\nReturn a random integer.\n\n_range: -9007199254740991 to 9007199254740991_\n\nSee: [Largest number in JavaScript](http://vq.io/16qnIYj)\n\n```js\nchance.integer();\n=> -1293235\n```\n\nCan optionally provide min and max.\n\n```js\nchance.integer({ min: -20, max: 20 })\n=> -7\n```\n\n\nThese min and max are inclusive, so they are included in the range. This means\n```js\nchance.integer({ min: -2, max: 2 })\n``` \nwould return either -2, -1, 0, 1, or 2.\n\n```js\n// Specific case\n-2 <= random number <= 2\n\n// General case\nmin <= random number <= max\n```\n","readmeFilename":"README.md"}