src/converter.js
function __pandocAvailable(cb) {
      var test = spawn('pandoc', ['--help']);
      test.on('error', function() {
        console.error('Pandoc not found');
        cb('Pandoc not found');
      });
      test.on('exit', function() { cb(null); });
      test.stdin.end();
    }
function __pandocAvailable(cb) {
      var test = spawn('pandoc', ['--help']);
      test.on('error', function() {
        console.error('Pandoc not found');
        cb('Pandoc not found');
      });
      test.on('exit', function() { cb(null); });
      test.stdin.end();
    }
function __pandocAvailable ( cb ) { var test = spawn ( 'pandoc' , [ '--help' ] ) ; test . on ( 'error' , function ( ) { console . error ( 'Pandoc not found' ) ; cb ( 'Pandoc not found' ) ; } ) ; test . on ( 'exit' , function ( ) { cb ( null ) ; } ) ; test . stdin . end ( ) ; }
Checks if the pandoc tool is available
Checks if the pandoc tool is available