This file contains 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
var fs = require('fs'); | |
var infile = process.argv[2]; | |
if (!infile) return console.log("need infile"); | |
var data = fs.readFileSync(infile, 'utf8').split('\n'); | |
var outlines = []; | |
data.forEach(function(item) { |