This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spawn = require('child_process').spawn; | |
const pandocPath = process.env.PANDOC || 'pandoc'; | |
let args = ['-f', from, '-t', to, '-o', 'output/' + outputFile, inputFile]; | |
let pandoc = spawn(pandocPath, args); | |
let error = ''; | |
pandoc.on('error', (err) => (throw new Error(err))); |