format markdown in a shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.travis.yml
README.md
example.js
index.js
package.json
sharkdown

README.md

Build Status

sharkdown

usage

npm install --save sharkdown

Or as a handy utility:

npm install sharkdown -g

And then you can do:

sharkdown file.md
sharkdown < "markdown data"

api

sharkdown(str)

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

sharkdown()

Returns a through-stream for pipes.

example

var sharkdown = require('sharkdown');

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