read-markdown
v1.0.2
Published
A promise-based module for reading and parsing markdown files.
Downloads
84
Readme
read-markdown
A promise-based module for reading and parsing markdown files.
Installation
With npm:
npm install --save read-markdown
Or with Yarn:
yarn add read-markdown
Usage
Just supply a glob or array of glob patterns to your markdown files.
var readMarkdown = require('read-markdown')
readMarkdown('./path/to/files/**/*.md')
.then(function(data){
console.log(data)
})
.catch(console.error)
Options
results
: Return results as an object or array. Defaultobject
html
: Parse the contents as HTML. Default:true