cat-markov
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cat-markov

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

70.4 kB

Total Files

12

Last publish

Collaborators

  • ratismal