{"_id":"@claudelalyre/lottery-facility","_rev":"4-37584baa1814bf1040c15ac22e11c9d3","name":"@claudelalyre/lottery-facility","dist-tags":{"latest":"0.0.1-alpha.1"},"versions":{"0.0.1-alpha.0":{"name":"@claudelalyre/lottery-facility","version":"0.0.1-alpha.0","description":"Some APIs for designing lottery cracking systems.","main":"lib/index.js","types":"lib/index.d.ts","private":false,"engines":{"node":">=12.0.0"},"directories":{"lib":"./lib","doc":"./doc","test":"./test"},"scripts":{"copy-files":"copyfiles -f src/**/*.json src/**/*.txt ./dist","lint:ts":"tslint -c tslint.json -p ./tsconfig.json \"src/**/*.ts\" -t stylish -e \"node_modules/**/*.ts\" -e \"**/*.d.ts\"","tsc":"tsc","clean":"rimraf build dist lib","prebuild":"npm run clean && npm run lint:ts","build":"tsc","postbuild":"npm run copy-files","test":"jest --config=jest.config.ts --rootDir . --forceExit --coverage","test0":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lalyre/lottery-facility.git"},"keywords":["lottery","gambling","fdj","wheeling","combination","euromillions","lotto","keno","jackpot","cash","money","fortune","chance"],"author":{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"},"contributors":[{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/lalyre/lottery-facility/issues"},"homepage":"https://github.com/lalyre/lottery-facility#readme","devDependencies":{"@types/jest":"^26.0.20","copyfiles":"^2.4.1","cross-env":"^7.0.3","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.1","ts-node":"^9.1.1","tslint":"^6.1.3","typescript":"^4.1.5"},"gitHead":"6458aed31c392b7dc00fa744c18722891af993cd","_id":"@claudelalyre/lottery-facility@0.0.1-alpha.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-gH/uwR75vrdoP3zgMtqT0ddievM5RTbXpvNZQspySKgXBDrQlJ3jpXJMVbMFAXqvgWXkye3y02jHcFub1AgZRA==","shasum":"fc842bc6c3873e20881217795a27aa7974845127","tarball":"https://registry.npmjs.org/@claudelalyre/lottery-facility/-/lottery-facility-0.0.1-alpha.0.tgz","fileCount":11,"unpackedSize":20518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgK99jCRA9TVsSAnZWagAA8rUP/juBEa6UDbw1TCzUIaNs\nK5u3iAPOM6oa1QXw8XZugOGQDW72FEXNz7MXjU+3pGRWzyZCbZwNqcPwWIqY\na/gmAmW0X0Hy+TsNo8DYMPPtDbDp3XfAuIT7R4pfHY3rSuzIGK8k3kw7Owf3\nEeLYmaQQ4M7wqQUoKx8TnXm1zuG9kZun5wuHlGAQ5gFoNg5JS7MvOvdJ6HGU\nkfTdeno4SeUkbx6XsA4RRbJtO5NAMgETYo0VryBB30PGIAnaUCp9bPB0nvQj\nj8A2PxHsYfxHITVjVD0DhF8Cdb00cq5WbVQ9roeliPXPNFwsP/xMqQABzqSi\nOeH3qTSn02gbkf7p+z47UijKpXNYNu6JoDQnMvM5YvkM8cXwygoP8pV8teNo\nqXBS2L/MMbPtRWDAIIFeA7xOSCRMNf+EeFLyq8Z37wH71n0LRkNxF7ieCEyg\n4icKX9sTRloMR5iCo0OvHNxdbHBpaLa3zAqKnC90jba8X/pRsuXqC1VnVefg\nUzhsHeMcZ8uMZ60xZhUmT0tIs8Vz7g0iOi+8x6mtv7IQe2IjI8vNy1AIsLK6\nXQSfd1OTK9JqYp9EV89HQB+G1+zTRxyJvZuvgD6u+00AFdjAIaErfNyJcWUY\nHzC7TmcwAXgjs9m8cwzAVK9zHJHcAUDgGn3GqtQVvcxo4/7aOG93B3GU/xCZ\nm7tQ\r\n=WVcR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5uGmL/9IwQxmZJ+hPmj9R4VrrDiLlTN9GE/MTn+Pw0AiEAiwMIApXEj8Guk+98U33pKscldBVFab9CCzH3wXM5aHk="}]},"_npmUser":{"name":"claudelalyre","email":"c_lalyre@yahoo.fr"},"maintainers":[{"name":"claudelalyre","email":"c_lalyre@yahoo.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lottery-facility_0.0.1-alpha.0_1613487970595_0.23024816514083613"},"_hasShrinkwrap":false,"deprecated":"obsolete"},"0.0.1-alpha.1":{"name":"@claudelalyre/lottery-facility","version":"0.0.1-alpha.1","description":"Some APIs for designing lottery cracking systems.","main":"lib/index.js","types":"lib/index.d.ts","private":false,"engines":{"node":">=12.0.0"},"directories":{"dist":"./dist","lib":"./lib","build":"./build","doc":"./doc","test":"./test"},"scripts":{"copy-files":"copyfiles -f src/**/*.json src/**/*.txt ./lib","lint:ts":"tslint -c tslint.json -p ./tsconfig.json \"src/**/*.ts\" -t stylish -e \"node_modules/**/*.ts\" -e \"**/*.d.ts\"","tsc":"tsc","clean":"rimraf build dist lib coverage","prebuild":"npm run clean && npm run lint:ts","build":"tsc","postbuild":"webpack && npm run copy-files","bundle":"browserify index.js -s Provable -o dist/provable.js","bundle-min":"browserify -g uglifyify ./index.js -s Provable -o dist/provable.min.js","test":"jest --config=jest.config.ts --rootDir . --forceExit --coverage","test0":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/lalyre/lottery-facility.git"},"keywords":["lottery","gambling","betting","fdj","wheeling","combination","euromillions","lotto","keno","jackpot","cash","money","fortune","chance","luck","random","random generator","random engine","bookmaker","roulette"],"author":{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"},"contributors":[{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/lalyre/lottery-facility/issues"},"homepage":"https://github.com/lalyre/lottery-facility#readme","devDependencies":{"@types/jest":"^26.0.20","buffer":"^6.0.3","copyfiles":"^2.4.1","cross-env":"^7.0.3","crypto-browserify":"^3.12.0","jest":"^26.6.3","js-sha256":"^0.9.0","rimraf":"^3.0.2","ts-jest":"^26.5.1","ts-node":"^9.1.1","tslint":"^6.1.3","typescript":"^4.1.5","webpack":"^5.23.0","webpack-cli":"^4.5.0"},"gitHead":"bb7934642a6a7e45e84dee00014cf6e664576e00","_id":"@claudelalyre/lottery-facility@0.0.1-alpha.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FVEiagDpnAzhjXt8ZO+KWoWf4L+t2/sHQnkTdYNs5Nfyxly7a58TUTDZp+DZz+mDGiz6CDpCwgJWibDc+F9nQw==","shasum":"07b3adef4fb355ff777081c8b0b6a351ff5ee902","tarball":"https://registry.npmjs.org/@claudelalyre/lottery-facility/-/lottery-facility-0.0.1-alpha.1.tgz","fileCount":15,"unpackedSize":65694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQgrQCRA9TVsSAnZWagAAbxgQAIroNsIqPQhj1iKDPhTE\n7GtyNb0aSmNqGQBnnx/LCCLo/0UI61GtFdbU1BCxOjaJaOnxzlZwv6VNqt09\nXu5qEGDflz8TBr5gZjpdZ69W22NGNymJbmU0QuU9LU2DW64cqM47tkDpvXZA\nuhs+R5uZY64ev06v/I64QplW/vnxMPulNC2LTWx8oF7B9Z7C6ep61RdvSvcN\np48aEdHKxm8ep9PPWjkr972Vp3UAnk4PHaISLJBwV2h2tFD1EGCh9EzGehJj\noNGGN4lSw1nmZfkXPYlhQojD3FZQMyjLm7yvVJwVwXkrioNJy6iOUIslHA3z\nlmr8Xyb4B2qqTMyUMR9K+2niVL94tT15N5C2d8ma6ZFL5FlOZ/qkZK6FYbPi\nNV1JgD3nWa/OpjuyGqxunHxjItbya79SQrTTZfzpCbwTzxwwq11A5hlO/38A\nJqauZvxp+BiVQ40fn6sdaA8YeFwrfccP1DbeV1IuG2dsiqQYbN4e2GereuX9\n1hzxL04FUqoLDEBqccdgvoaQ/tBdOgRrTElpcdVFaUWGWeCaoIt0VcUIv41S\nSQ3s9EMS6cgKPcdx9M7kRe//8X3QN/Q1du3Q+cAp9YZo/Pr+S28pp+DloEs5\nK9cgM87ZqUs6Z60UMbEyHvpZDPKSOwTOm3/A7SFSZP1BfXCA+LlE12ly/auC\nNs3s\r\n=Lc7f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjImpoB/tonMk7VPzHVCruA0bIgX8bF6h3/6GeBJlHugIgCMzpg69/tItD0AGKmooUb3V2h8wIk6++RcpZKHOusxA="}]},"_npmUser":{"name":"claudelalyre","email":"c_lalyre@yahoo.fr"},"maintainers":[{"name":"claudelalyre","email":"c_lalyre@yahoo.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lottery-facility_0.0.1-alpha.1_1614940879864_0.7396156987298241"},"_hasShrinkwrap":false,"deprecated":"obsolete"}},"time":{"created":"2021-02-16T15:06:10.555Z","0.0.1-alpha.0":"2021-02-16T15:06:10.744Z","modified":"2022-11-29T10:32:22.186Z","0.0.1-alpha.1":"2021-03-05T10:41:20.092Z"},"maintainers":[{"name":"claudelalyre","email":"c_lalyre@yahoo.fr"}],"description":"Some APIs for designing lottery cracking systems.","homepage":"https://github.com/lalyre/lottery-facility#readme","keywords":["lottery","gambling","betting","fdj","wheeling","combination","euromillions","lotto","keno","jackpot","cash","money","fortune","chance","luck","random","random generator","random engine","bookmaker","roulette"],"repository":{"type":"git","url":"git+https://github.com/lalyre/lottery-facility.git"},"contributors":[{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"}],"author":{"name":"Claude Lalyre","email":"claude.lalyre@gmail.com"},"bugs":{"url":"https://github.com/lalyre/lottery-facility/issues"},"license":"MIT","readme":"# lottery-facility\nSome APIs for designing lottery cracking systems.\n\n\n<!-- TOC -->\n- [Overview](#overview)\n- [Install](#install)\n- [Publishing](#publish-a-version)\n\n\n## Overview\n\nFeatures:\n\n* Random numbers generator\n* Draws statistics\n* Draws prediction algorithms\n\n\n## Install\n\nInstall with npm:\n\n```sh\nnpm install @claudelalyre/lottery-facility\n```\n\n## Quick Start\n\nimport in your NodeJS project:\n\n```js\nconst lottery = require('@claudelalyre/lottery-facility');\n\nconst balls = lottery.lotteryBalls(70);\nlottery.shuffleBalls(balls, 30);\nconsole.log(balls);\n```\n\nOr get it from a CDN:\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n  <title>Lottery-facility from CDN</title>\n</head>\n<body>\n\n  <!-- Load lottery-facility library -->\n  <script src=\"lottery-facility-bundle.js\"></script>\n\n  <!-- Turn all file input elements into ponds -->\n  <script>\n  const balls = LotteryFacility.lotteryBalls(70);\n  LotteryFacility.shuffleBalls(balls, 30);\n  document.write(balls);\n  </script>\n\n</body>\n</html>\n```\n\n## Usage\nYou could use like this:\n```JavaScript\nsha256('Message to hash');\nsha224('Message to hash');\n\nvar hash = sha256.create();\nhash.update('Message to hash');\nhash.hex();\n\nvar hash2 = sha256.update('Message to hash');\nhash2.update('Message2 to hash');\nhash2.array();\n\n// HMAC\nsha256.hmac('key', 'Message to hash');\nsha224.hmac('key', 'Message to hash');\n\nvar hash = sha256.hmac.create('key');\nhash.update('Message to hash');\nhash.hex();\n\nvar hash2 = sha256.hmac.update('key', 'Message to hash');\nhash2.update('Message2 to hash');\nhash2.array();\n```\nIf you use node.js, you should require the module first:\n```JavaScript\nvar sha256 = require('js-sha256');\n```\nor \n```JavaScript\nvar sha256 = require('js-sha256').sha256;\nvar sha224 = require('js-sha256').sha224;\n```\nIt supports AMD:\n```JavaScript\nrequire(['your/path/sha256.js'], function(sha256) {\n// ...\n});\n```\nor TypeScript\n```TypeScript\nimport { sha256, sha224 } from 'js-sha256';\n```\n\n\n<!--\nlib/ is intended for code that can run as-is\nsrc/ is intended for code that needs to be manipulated before it can be used\nbuild/ is for any scripts or tooling needed to build your project\ndist/ is for compiled modules that can be used with other systems.\nbin/ is for any executable scripts, or compiled binaries used with, or built from your module.\ntest/ is for all of your project/module's test scripts\nunit/ is a sub-directory for unit tests\nintegration/ is a sub-directory for integration tests\nenv/ is for any environment that's needed for testing\n-->\n\n\n## Example\n```JavaScript\nsha256(''); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nsha256('The quick brown fox jumps over the lazy dog'); // d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592\nsha256('The quick brown fox jumps over the lazy dog.'); // ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c\nsha224(''); // d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f\nsha224('The quick brown fox jumps over the lazy dog'); // 730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525\nsha224('The quick brown fox jumps over the lazy dog.'); // 619cba8e8e05826e9b8c519c0a5c68f4fb653e8a3d8aa04bb2c8cd4c\n\n// It also supports UTF-8 encoding\nsha256('中文'); // 72726d8818f693066ceb69afa364218b692e62ea92b385782363780f47529c21\nsha224('中文'); // dfbab71afdf54388af4d55f8bd3de8c9b15e0eb916bf9125f4a959d4\n\n// It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` input\nsha256([]); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nsha256(new Uint8Array([211, 212])); // 182889f925ae4e5cc37118ded6ed87f7bdc7cab5ec5e78faef2e50048999473f\n\n// Different output\nsha256(''); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nsha256.hex(''); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nsha256.array(''); // [227, 176, 196, 66, 152, 252, 28, 20, 154, 251, 244, 200, 153, 111, 185, 36, 39, 174, 65, 228, 100, 155, 147, 76, 164, 149, 153, 27, 120, 82, 184, 85]\nsha256.digest(''); // [227, 176, 196, 66, 152, 252, 28, 20, 154, 251, 244, 200, 153, 111, 185, 36, 39, 174, 65, 228, 100, 155, 147, 76, 164, 149, 153, 27, 120, 82, 184, 85]\nsha256.arrayBuffer(''); // ArrayBuffer\n```\n\n\n\n\n## Publish a version\n\nBuild and test the project with these commands\n```sh\nnpm install\nnpm run build\nnpm run test\n```\n\nYou can see what files will be embedded in the new release with the command below. Files and directories listed in **.gitignore** and **.npmignore** won't be in the package.\n```sh\nnpm pack\n```\n\nUpdate the package version with one of the following commands. If inside a Git directory, the **package.json** file's version is changed and committed. And a new Git tag related to the new version is created.\n```sh\nnpm version prerelease --preid=alpha\nnpm version prerelease --preid=beta\nnpm version prerelease --preid=rc\nnpm version patch\nnpm version minor\nnpm version major\n```\n\nPush the new Git tag to remote origin\n```sh\ngit push --tags\n```\n\nGo to the root of the project, and publish publicly the new package version to the NPM registry. Once published a version can be deprecated, but it cannot be deleted and re-used.\n```sh\nnpm publish --access public\n```\n\n\n## Contributors\n\n* [All Contributors](./AUTHORS)\n\n","readmeFilename":"README.md"}