Skip to content

Instantly share code, notes, and snippets.

@dminkovsky
Created May 5, 2018 21:35
Show Gist options
  • Save dminkovsky/43ef6fe4675c041b214736bcac2eb846 to your computer and use it in GitHub Desktop.
Save dminkovsky/43ef6fe4675c041b214736bcac2eb846 to your computer and use it in GitHub Desktop.
Demoji
var fs = require('fs');
var iconv = require('iconv-lite');
var input = 'Kino - Le dernier des heroes.cue';
var output = 'Kino - Le dernier des heroes.utf8.cue';
fs.createReadStream(input)
.pipe(iconv.decodeStream('win1251'))
.pipe(iconv.encodeStream('utf8'))
.pipe(fs.createWriteStream(output));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment