sharkdown

markdown in your shell

sharkdown

npm install --save sharkdown

Or as a handy utility:

npm install sharkdown -g

And then you can do:

sharkdown file.md
sharkdown < "markdown data"

Takes a string, returns a string with markdown encoded as control codes for a shell.

Returns a through-stream for pipes.

process.stdin.pipe(sharkdown()).pipe(process.stdout);