barnes-pandoc
v0.1.0-alpha.b035843b
Published
Convert (nearly) anything into (nearly) anything else, through the power of Pandoc!
Downloads
9
Readme
Barnes-Pandoc
Convert (nearly) anything into (nearly) anything else, through the power of Pandoc!
Prerequisites
You'll need a functioning Pandoc install. Go to pandoc.org and find the installation instructions for your platform.
Installation
yarn add barnes-pandoc
Usage
import Barnes from 'barnes';
import pandoc from 'barnes-pandoc';
(async () => {
await new Barnes('/Users/Dev/Documents')
.read('**/*.*')
// convert everything we can to markdown!
.map(pandoc({ '*': 'commonmark' }))
// all convertable files are now markdown!
.write('md');
}());