{"_id":"@0x77/markov-typescript","_rev":"1-f9968103888928924b2df12f474f5b2f","name":"@0x77/markov-typescript","dist-tags":{"latest":"1.2.1"},"versions":{"1.2.1":{"name":"@0x77/markov-typescript","version":"1.2.1","description":"A Markov Chain library written in Typescript.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","clean":"rimraf ./dist","tsc":"tsc"},"repository":{"type":"git","url":"git+https://github.com/0x77dev/markov-typescript.git"},"keywords":["markov","chain","generator","random","typescript"],"author":{"name":"Mikhail Marynenko","email":"0x77dev@protonmail.com"},"contributors":[{"name":"Tom Wolfe","email":"trwolfe13@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/0x77dev/markov-typescript/issues"},"homepage":"https://github.com/0x77dev/markov-typescript#readme","devDependencies":{"codacy-coverage":"^2.0.2","istanbul":"^0.4.5","jasmine-core":"^2.6.4","karma":"^1.7.0","karma-chrome-launcher":"^2.2.0","karma-jasmine":"^1.1.0","karma-typescript":"^3.0.4","rimraf":"^2.6.1","tslint":"^5.4.3","typescript":"^2.4.1","typings":"^2.1.1"},"dependencies":{"typescript-collections":"^1.2.3"},"gitHead":"9c8b0a6b2d9500de020eab1636a32b20dbacbc6c","_id":"@0x77/markov-typescript@1.2.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HbCuysSXOMlhwtEUlWR4vjwvSC4rzaArVW3iYnfMlfDJIUQZWUwOxsFMiKy2i0aXgluQoEi6WgT/4SkIibEaRw==","shasum":"73fcc9efe21931e250025f092c6858ddcbd0c07b","tarball":"https://registry.npmjs.org/@0x77/markov-typescript/-/markov-typescript-1.2.1.tgz","fileCount":28,"unpackedSize":26503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbfNjCRA9TVsSAnZWagAAtigQAJH1REQHojwi9JrqxHu9\nG8rsyklX8Cmo5DlVNNlen5/4yO5J52hcbVJLKwfOFllSx7puSdPhqDdxxdrF\n0GitUG0/GDrwzNa73V5VX0T5PkROX5UQ+NmHeOeTUVrUTJjXUs1u1TD5C9rh\nzNnBHTSkpcPHSw4OikDX6Ns+kVLZMMlkTom2r8jIn207BYmeWOw872w7RKfC\nSObpUElp8VZWuihfGmEW6kYpCY5Q/x65lVImaQk8JTBv6DE7jxRNiAgY2Qde\nDuJtHTmhDiUP47MdW13MrpSC5jE+X/RIh2NuqkvjCsqqNzRq8oqjqc/LFV+G\noGsZnPAUm6smmKV2wW9LLARpFvpLehlFjGK1h6YRwjFFgg3Q9FUXdxrODpGY\nx7ko8vFeU+MOMkvXUHz3vdb9hjRGJVLfMD3cWfqUJ1wKy8HiyVQ7QaWcfIkQ\nbk5I4VHnY1IsKZrHjBLqvvUOgL8mGtVsE1KWylos77ZPNEQfGW+mrBMbsjO9\niq+n1ZR/BYInQlm3yW28/xAYj6C+9iQyGxBsU9TccPLRbggxbwDcxopPaR9L\nB+QjHdJzwMtsOtlmUJmLUKESslUMI+Vpcj8v2NbZniJcYVfDscHu9ARNbyzM\n71Wya9KZo8gdvsPASSuBkN+tX8N1yJvaHcr4x5fp8nvQJ4fENjAP7zI9z6Uq\nhVhI\r\n=S+pm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5mcvYMp85E0p8GmcaDCDmWHJZtPWYwUaW9oitIWcvdAiAQ1pUxHPCA5tYEw7yxFarc1+AUuV9EAZCq5k0PQernaQ=="}]},"maintainers":[{"name":"0x77","email":"0x77dev@protonmail.com"}],"_npmUser":{"name":"0x77","email":"0x77dev@protonmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markov-typescript_1.2.1_1601041251218_0.8070916991966937"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-25T13:40:51.181Z","1.2.1":"2020-09-25T13:40:51.329Z","modified":"2022-04-04T10:27:50.297Z"},"maintainers":[{"name":"0x77","email":"0x77dev@protonmail.com"}],"description":"A Markov Chain library written in Typescript.","homepage":"https://github.com/0x77dev/markov-typescript#readme","keywords":["markov","chain","generator","random","typescript"],"repository":{"type":"git","url":"git+https://github.com/0x77dev/markov-typescript.git"},"contributors":[{"name":"Tom Wolfe","email":"trwolfe13@gmail.com"}],"author":{"name":"Mikhail Marynenko","email":"0x77dev@protonmail.com"},"bugs":{"url":"https://github.com/0x77dev/markov-typescript/issues"},"license":"MIT","readme":"# markov-typescript\n\nA Markov Chain library written in TypeScript, inspired by [otac0n/markov](https://www.github.com/otac0n/markov) and [chriscore/MarkovSharp](https://www.github.com/chriscore/MarkovSharp).\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Installing\n\n```bash\nyarn add @0x77/markov-typescript\n```\n\n### Usage\n\nImport types from package:\n\n```typescript\nimport * as Markov from \"@0x77/markov-typescript\";\n```\n\nCode sample\n\n```typescript\nconst chain = new MarkovChain<string>(2);\nchain.learn(\"the quick brown fox jumped over the lazy dog\".split(\" \"));\nchain.learn(\"the quick brown dog jumped over the lazy cat\".split(\" \"));\nchain.learn(\"the quick brown cat jumped over the lazy fox\".split(\" \"));\nfor (let x = 0; x < 10; x++) {\n  console.log(chain.walk().join(\" \"));\n}\n```\n\n## Building the project\n\n```bash\nyarn build\n```\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/0x77dev/markov-typescript/tags).\n\n## Authors\n\n- **Tom Wolfe** - _Initial work_ - [trwolfe13](https://github.com/trwolfe13)\n- **Mikahil Marynenko** - _Dependencies, package optimizations_ - [trwolfe13](https://github.com/0x77dev)\n\nSee also the list of [contributors](https://github.com/0x77dev/markov-typescript/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n- Thanks to [otac0n](https://www.github.com/otac0n) for the original .NET codebase.\n- Thanks to [chriscore](https://www.github.com/chriscore) for the second reference and unit tests.\n","readmeFilename":"README.md"}