UNPKG

564 BMarkdownView Raw
1msee
2===
3
4`msee` is a command-line tool to read markdown file.
5
6And it's a library help your command-line software to output readable markdown content.
7
8## Usage
9
10 msee <file> [file...]
11 msee <file> [file...] | less
12 cat <file> | msee
13
14## API
15
16```javascript
17var msee = require('msee');
18
19// parse markdown text
20msee.parse('> hello world!');
21
22// ...with options
23// @see https://github.com/firede/msee/blob/master/lib/msee.js#L9
24msee.parse(str, {
25 collapseNewlines: false,
26 width: 120
27});
28
29// parse markdown file
30msee.parseFile('~/doc/readme.md');
31```