barnes-pandoc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.b035843b • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i barnes-pandoc

Weekly Downloads

2

Version

0.1.0-alpha.b035843b

License

MIT

Last publish

Collaborators

  • noahlange