cat-markov
v1.1.2
Published
A library to generate markov chains.
Downloads
15
Readme
Cat-Markov
A markov chain generator.
Installation
NPM
npm i --save cat-markov
Yarn
yarn add cat-markov
Usage
JavaScript
const Markov = require('cat-markov').default;
const markov = new Markov();
markov.seed(['an array', 'of strings', 'to populate', 'the markov with']);
const keys = markov.create();
TypeScript
import Markov from 'cat-markov';
const markov = new Markov();
markov.seed(['an array', 'of strings', 'to populate', 'the markov with']);
const keys = markov.create();