extractor.js
function handleExport(resultString) {
    if (resultString === "") {
        process.exit(500);
    }

    let targetPath = path.join(currentDir, argv.exportOutput);
    fs.writeFileSync(targetPath, resultString);
    console.log("Finished writing csv file to:", targetPath);
}
function handleExport(resultString) {
    if (resultString === "") {
        process.exit(500);
    }

    let targetPath = path.join(currentDir, argv.exportOutput);
    fs.writeFileSync(targetPath, resultString);
    console.log("Finished writing csv file to:", targetPath);
}
function handleExport ( resultString ) { if ( resultString === "" ) { process . exit ( 500 ) ; } let targetPath = path . join ( currentDir , argv . exportOutput ) ; fs . writeFileSync ( targetPath , resultString ) ; console . log ( "Finished writing csv file to:" , targetPath ) ; }
handleExport - Handles the csv string generated by elm and saves it to exportOutput.

@param  {String} resultString A CSV string of all translations.
handleExport - Handles the csv string generated by elm and saves it to exportOutput .