npm.io
0.1.0-alpha.b035843b • Published 9 years ago

barnes-pandoc

Licence
MIT
Version
0.1.0-alpha.b035843b
Deps
1
Vulns
0
Weekly
0

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');
}());