0.2.1 • Published 6 years ago

markov-cli v0.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

💬 Markov CLI

NPM version NPM downloads Build status Dependencies Coverage Status

CLI to analyze text into a Markov Chain and generate sentences from them.

💾 Installation

The package is on the NPM registry as markov-cli. Simply install it globally with your NPM client of choice.

🔧 Usage

Once installed globally, verify the command installed with markov-cli --help
There are two subcommands you can use:

analyze

Example usage: markov-cli analyze input.txt
Where input.txt is a file containing input strings, separated by newlines.

This will output a file named input.json with markov chain data for use in the next subcommand.

generate

Example usage: markov-cli generate input.json
Where input.json is a markov chain file generated by the analyze command.

This will output a string generated using the markov chain.

❤ Thanks

0.2.1

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago