Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 548 Bytes

readme.md

File metadata and controls

37 lines (26 loc) · 548 Bytes

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();