/pandoc-bin

Pandoc Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux, and Windows. http://johnmacfarlane.net/pandoc/

Primary LanguageJavaScript

pandoc-bin Build Status

Pandoc 1.12.4.2 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux, and Windows.

If you need to convert files from one markup format into another, pandoc is your swiss-army knife.

Install

$ npm install --save pandoc-bin

Usage

var execFile = require('child_process').execFile;
var optipng = require('pandoc-bin').path;

execFile(optipng, ['-v'], function (err, stdout, stderr) {
    console.log('Pandoc version:', stdout.match(/\d+\.\d+\.\d+(\.\d+)?/)[0]);
});

CLI

$ npm install --global pandoc-bin
$ pandoc --help

License

Everything excluding the binaries licensed under the MIT license.

Pandoc is licensed under the GPL v2 and copyright John MacFarlane and the Contributing Authors.