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 Iconv = require("iconv").Iconv, conv = new Iconv('shift_jis','UTF-8//TRANSLIT//IGNORE'); | |
var fs = require("fs"); | |
var filename = process.argv[2]; | |
if(!filename) throw "need argument"; | |
fs.readFile(filename, function (err, data) { | |
if (err) throw err; | |
var output=""; | |
conv.convert(data).toString().split("¥n").forEach(function(line){ | |
var elems = line.split('","'); |