{"_id":"@codebundlesbyvik/number-operations","_rev":"5-628bcc4f11010a4a9ec522e7a2f471ec","name":"@codebundlesbyvik/number-operations","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@codebundlesbyvik/number-operations","version":"1.0.0","description":"Helper functions for number operations.","main":"index.js","author":{"name":"codebundlesbyvik"},"license":"ISC","homepage":"https://github.com/vikputthiscodeongit/number-operations/","_id":"@codebundlesbyvik/number-operations@1.0.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-NMN+FmYqPr2IkkvVxZoiezItGoiPHklVE+sSbaBevIi4kXfHT7zBgdXhnRygoLJsv0SseCUTiUlBgNjjKSasjg==","shasum":"8031c0a9b6979bf4d3ba976a9f00ee937d2e3658","tarball":"https://registry.npmjs.org/@codebundlesbyvik/number-operations/-/number-operations-1.0.0.tgz","fileCount":2,"unpackedSize":506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+xZGCRA9TVsSAnZWagAAVf8P/2F68wNPQ3Pd9TbvRNrw\n2i3KtCwkjqQemw973DjsVCdAZdEqgrGX80Xlf1bCk5uchyXOPulfeUBHL1rv\nDQcetIFUJfUwAM935Ra37J6i+2oBAGvKIcx6Hp9MtwAyOUNUGxwvaEVNJKfJ\nHpb9lPDfxzAYiErwy2TPt9rLxb2oSnHS4q0XMaCgYLN4/xerjpM0dbJ3mI24\nWpu4iERr2wo0HXZqKoKeQ9M6wCDtwGxIH+GKIK/6+ASlLGErdPjI019NXOT0\nSCkeAAgM9ZGQ11rz8dMbsgMuz/jc9Yyp/kMA9Fq63drH+3E/e2C2Pb3QLTEx\nuLtTEd1kkRDkRvuYBbuLhqVkQgy3YYCRmNJ7i63+EbEwhY2WWCz+oC3+MGog\nJVwwTL7z4Bf4Ar4wcp9bl1V7gEUGhyHgtbIM5Isbkwt7riIq5fVq7FLsyqTb\nQISOmdzcVm2UHRo1bHVaRpHe0p/gYOr0+bjRzpaAsyYdOROhDx1fqCo9cpsC\nP7ssW/1O/nDzyKgkRlwwMgWagRiHsTuW8mmbK90qGe7Re+W21j4t1eM8EN82\nH6nJUXDAytbyLoecMWiiQtNRvUBWXWo/rLZDxMB/6pnoaDy7cRxGfHdupn0P\nb7z8C+Scl3I1D/j5xrF0//ns6vqJVKzIbBqQB8HJq1UNAI3FQ8ZDQRpeZDEi\nl4ld\r\n=67Fo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEzaRCf8VHBjI8w+izUcaeWVbI5bGuauKjxXHBiaOCCAiEAld6zXpCFWPbwOGVqNWE5uAV8awd8g8W40ayUYekm+VA="}]},"_npmUser":{"name":"codebundlesbyvik","email":"code@viktorchin.nl"},"directories":{},"maintainers":[{"name":"codebundlesbyvik","email":"code@viktorchin.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-operations_1.0.0_1643845190385_0.006831833898439443"},"_hasShrinkwrap":false,"deprecated":"Please use @codebundlesbyvik/js-helpers instead. Migration will only take a minute - I promise!"},"1.0.1":{"name":"@codebundlesbyvik/number-operations","version":"1.0.1","description":"Helper functions for number operations.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/vikputthiscodeongit/js-number-operations.git"},"keywords":["helpers","numbers","integer","generate","random"],"author":{"name":"codebundlesbyvik"},"license":"MIT","bugs":{"url":"https://github.com/vikputthiscodeongit/js-number-operations/issues"},"gitHead":"a758b594f0b811aa77f18f1edfa39039b7c2f5f3","homepage":"https://github.com/vikputthiscodeongit/js-number-operations#readme","_id":"@codebundlesbyvik/number-operations@1.0.1","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-gW2VncTJESmz+rLKCIIwScwATM4gqcVJVX3NbBCv7DxNfCkXYsWUuxYHOL0oUiC9YcN6rjhO1/BpnnK2IU6EkQ==","shasum":"421da72df5ec22972d6a259a000bc5433e7cc128","tarball":"https://registry.npmjs.org/@codebundlesbyvik/number-operations/-/number-operations-1.0.1.tgz","fileCount":5,"unpackedSize":3469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/BylCRA9TVsSAnZWagAAT9YP/ioA87SRJhJEm1nC4mhf\nS+OO4naoF8MvuqjhTBZJsHF1mzlfZFV9eVmlUGZl/W3cmgBXPXnpmUBlIp2A\nK0vNUMRjGj0oZjz7NW311qVVeRhN0C7E1v1WV1dPV197fhjjtDnZI37I1Byu\n/xOHv/VKVcEeVLjVcbsboaeP3NXjNezohtreF368+KK9clbxKIGZTIbeYr0h\n3LbpUtZyecR3DjJrJEJTVkhakLi/CVxb6KHWk5r9v+ddIw57UpzoAPebfps2\n520R+wO9UkENA/wgfeeZ+LLoIdNCLaDxjybGlS2IHiZ7Az3+k0m6m3fjrCXS\nNAS8SJcAXAACxvFYUTipYP+Cb4zJ+08RIltcDmawlIgFw3q3lqS62ZkuUrF1\n1cVHoCY/5sVvnsIxiHwucVqrMECyV94gAlqn0igbykIGzl7CeDQKPbuT7zVI\n9TNwzyW/tF8NTfqRTpY2rWeMmchfD5/49q6s2wlYX4AxOBewt/JrGj8TjQCu\nGLyrFGTkkFLvVs47GzTUiXqNIoO0RRVvlyNlh2qROE/xirKxNSleGVNpD2Xt\nxc16CcxbaEB7TsQY14BUjzhGyNfgT5Td83v+1OWw0kNw1r3SCHKEksKNV/o+\nCwcR0dVNxZ93q8Fjyw1unwjx2+HiVulE48zKAlCnUiXom1l6/CdRoC7zvjve\nPtMm\r\n=cjn3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHo8cyNadtzdZikkf8g/OB7rlpPn28KVAkzp8BQyb1ToAiEAnDTxr5kRq9kD7jvyyodSsLac/j0lSDEO4TOQzbiV46M="}]},"_npmUser":{"name":"codebundlesbyvik","email":"code@viktorchin.nl"},"directories":{},"maintainers":[{"name":"codebundlesbyvik","email":"code@viktorchin.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-operations_1.0.1_1643912356875_0.3719519260820199"},"_hasShrinkwrap":false,"deprecated":"Please use @codebundlesbyvik/js-helpers instead. Migration will only take a minute - I promise!"},"1.0.1-1":{"name":"@codebundlesbyvik/number-operations","version":"1.0.1-1","description":"Helper functions for number operations.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/vikputthiscodeongit/js-number-operations.git"},"keywords":["helpers","numbers","integer","generate","random"],"author":{"name":"codebundlesbyvik"},"license":"MIT","bugs":{"url":"https://github.com/vikputthiscodeongit/js-number-operations/issues"},"gitHead":"4f0aadf0557797b003185caa3b00842381f2e014","homepage":"https://github.com/vikputthiscodeongit/js-number-operations#readme","_id":"@codebundlesbyvik/number-operations@1.0.1-1","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-KGshIv6MO+duNmayV8D7ly/2NpPYEOi6Fp+bvqWGwmecVS06B/VIlja7/c//LGVhbZCIdfAhvbPFRRlIyWvohw==","shasum":"b59eb0db17f1ff7b04eb6becd5b9ae69bb9269c7","tarball":"https://registry.npmjs.org/@codebundlesbyvik/number-operations/-/number-operations-1.0.1-1.tgz","fileCount":5,"unpackedSize":3485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/CEZCRA9TVsSAnZWagAAEscP/1sBoLhhGWGOGCilTZz9\nVFCQeLsV2AqUE8nkHroApfnt2sJDzBoeCQhFNDjXpw/zv5u87mSo3Jdkj/Pg\nXXsOrmGMy+qfU+7woSM3kHLI2Ln71wc8rNwH4DLZYTcFw5fI8C131UDljPaw\nkFQv2q95vjSc3TusDBT/zIWHhiCrQIzdanhjBFNfWnBoXJJYSaGzYxEw6VA6\nc9rno0u6MAnFyAfItgk0QvtTNAPzTe9QqEqbgQQatAWfSWaF8XXk66TpCxgl\nwf+NjO73LOHLcvTj0rol12dhFQanTbz12h4Pd/k550A4Kb+1c4JtWkHtZQAX\nAzmiccXhpbd1S6mWPjpUfbRTz8EKrAsRXgGposzYYqFEcAwApuci3MO2sGwb\nOke1q1h/aveehI3hK22QScXPXAU903w48oidvRkA358SlVOc6ydT08hQPRqZ\n1epxkBfrioJNqBkxUdzYtoQJFZ5uoTg3dWpH0a6k6jTDQ7f49hH0cxTrj6SH\nyUrQfIHZOzjUEM6kl1R0jvgSQ6NpJdVWyfITNPNQkFJy1K8DwHmof3p/Qlq4\nfyjh+6V1tWLUBVtBlxS+J/8K13gVwZeynbjBEev38tkOwdpS31DzTCT36OfD\nRDQSt8pZ8IiwQJEltk21wYF136O7pZeBnYoovgX0XEQXFruYkrDMFNbMG1ge\npE5q\r\n=HSlZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4fEk4RejIOrXiq+6JrGaw36sYHeFjTSNPYydECCqCCAiAki33PpoY0+8wDxZZ2fTsb8Qa7MngpppCL49cNNa5LFQ=="}]},"_npmUser":{"name":"codebundlesbyvik","email":"code@viktorchin.nl"},"directories":{},"maintainers":[{"name":"codebundlesbyvik","email":"code@viktorchin.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-operations_1.0.1-1_1643913497429_0.5167206491359744"},"_hasShrinkwrap":false,"deprecated":"Please use @codebundlesbyvik/js-helpers instead. Migration will only take a minute - I promise!"},"1.0.2":{"name":"@codebundlesbyvik/number-operations","version":"1.0.2","description":"Helper functions for number operations.","main":"./index.js","module":"./index.js","repository":{"type":"git","url":"git+https://github.com/vikputthiscodeongit/js-number-operations.git"},"keywords":["es6","helpers","number","integer","generate","random"],"author":{"name":"codebundlesbyvik"},"license":"MIT","bugs":{"url":"https://github.com/vikputthiscodeongit/js-number-operations/issues"},"gitHead":"3bf80f7dd8957d87c4202bfeffa42e2ba0b699a8","homepage":"https://github.com/vikputthiscodeongit/js-number-operations#readme","_id":"@codebundlesbyvik/number-operations@1.0.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-O5ql/DUeT5TOl2ffde0MVtw7gGlAbjf1K4RqfPNFdRkBAUQO6VxEBo5P8vFRfkW6pC+5g+TDb9zct7wnX0q7sQ==","shasum":"b3b0601c43414dcc74e733bffd2a71144e2104e4","tarball":"https://registry.npmjs.org/@codebundlesbyvik/number-operations/-/number-operations-1.0.2.tgz","fileCount":5,"unpackedSize":3749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPGYFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+fQ/9FTfQlotpcRjj/r07Byt+JqN7fwHYCr7WX3BlpSKLHSoA/fK7\r\n/tRiXB6KC7cdqR4Io5ISZNiqygZ7vVlGAxBZ7GcCJky67iDsA6fVItxFrami\r\nH8Mic96CjYJbQ+9BxyQDIwzUu0D6VDgghh5LOh2ijtPL/WaUoEWQsrU9mV5V\r\nbAjDxr512Sn9kunldl7JYy74MdQ8qJxHFDgsBiO4KlTPE1I4IavgeztHX8H4\r\ne7auMEn1iKvAnlcD7vI/CxMQeh6uoeNBnmLEeKlhSBJuIyuERjUkLDq7UyvC\r\nYtrXInaUcrQ5pMbwCUdif/8uB4NS2g6lqoP/NRMrphPFs3k8SRfCDJIyVC1/\r\ntx0cFCV3A254p0aY4VhdodMwXKYBYLmdHjMxAVKWdX5UvQDYrmbjMo3RFqNq\r\nHXHVEia5BD8tmSOgWWWIJ1vvnrzQ0fExpwPYUapxXX+g9bTVjuw4VO9/THDB\r\nOSzJhOz89umLb45rnmdCGy09+G/GEAalEfkRVGLPCtlz54Cd4hGJ0KmklN81\r\nfEYJKih7uiNyA9B5hht7QH0tV6PG2IWIHEsKMVsw0QWqFB7ZIM5S+FnaDlKP\r\norL9QaMZ8WxBwreIQ3XGCdsLTm7ZgA7hAjKP1jVb7nab5stsT6a34agbTeCe\r\nEhGIg6VLLaQZJNHniUfdIwys+vLz1qBXfqg=\r\n=raPH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkHILJ8+vWZAB3cS8dW3dPMoXDhYK5THiHsESZc8mn+gIgVpC7SkTCXfYR0PQQvjQ/8HODiFsXlUMCcApv4QP0RrU="}]},"_npmUser":{"name":"codebundlesbyvik","email":"code@viktorchin.nl"},"directories":{},"maintainers":[{"name":"codebundlesbyvik","email":"code@viktorchin.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-operations_1.0.2_1648125444917_0.06013807313838915"},"_hasShrinkwrap":false,"deprecated":"Please use @codebundlesbyvik/js-helpers instead. Migration will only take a minute - I promise!"}},"time":{"created":"2022-02-02T23:39:50.333Z","1.0.0":"2022-02-02T23:39:50.525Z","modified":"2023-11-05T12:06:18.463Z","1.0.1":"2022-02-03T18:19:17.045Z","1.0.1-1":"2022-02-03T18:38:17.570Z","1.0.2":"2022-03-24T12:37:25.082Z"},"maintainers":[{"name":"codebundlesbyvik","email":"code@viktorchin.nl"}],"description":"Helper functions for number operations.","homepage":"https://github.com/vikputthiscodeongit/js-number-operations#readme","author":{"name":"codebundlesbyvik"},"license":"MIT","readme":"# number-operations\n[![npm](https://img.shields.io/npm/v/@codebundlesbyvik/number-operations)](https://www.npmjs.com/package/@codebundlesbyvik/number-operations)\n[![npm - downloads per week](https://img.shields.io/npm/dw/@codebundlesbyvik/number-operations)](https://www.npmjs.com/package/@codebundlesbyvik/number-operations)\n\nJavaScript helper functions for number operations.\n\n<br>\n\n## Installation\n\n``` shell\n// Install package from npm\nnpm install @codebundlesbyvik/number-operations\n```\n\n<br>\n\n``` javascript\nimport getRandomIntUnder from \"@codebundlesbyvik/number-operations\";\n```\n\n<br>\n\n## Functions\n\n### `getRandomIntUnder(max, includeMax)`\n\nGenerate and return a random integer below a given number.\n\n⚠️ **Makes use of [Math.random()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random), which ISN'T cryptographically secure. Do NOT use this for generating secure, random integers.** ⚠️\n\n#### Parameters\n\n**\\*** indicates required\n\n - **\\*** `max` (`Number`): Depending on `includeMax`, the returned integer will be either equal to or below this number.\n - `includeMax` (`Boolean`): Whether or not to include `max` when generating the integer. Default is undefined, which functions as `false`.\n\n#### Usage\n\n```javascript\ngetRandomIntUnder(10)\n// > 7\n\ngetRandomIntUnder(10, true)\n// > 10\n```\n\n<br>\n\n## License\n\nMIT © [Viktor Chin-Kon-Sung](https://github.com/vikputthiscodeongit)\n","readmeFilename":"README.md","keywords":["es6","helpers","number","integer","generate","random"],"repository":{"type":"git","url":"git+https://github.com/vikputthiscodeongit/js-number-operations.git"},"bugs":{"url":"https://github.com/vikputthiscodeongit/js-number-operations/issues"}}