codes
Node.js iconv bindings - Streamable, fast and lightweight
npm
Installing withnpm install codes
Usage
Encode from one character encoding to another:
var assert = ;var codes = ; // convert from UTF-8 to ISO-8859-1var str = 'É isso ai. Testando acentuação: áéíóú...';var buffer = codes;var str2 = codes;assert; // stream from LATIN1 to UTF-8 var cs = codes;var str4 = '';cs;cs;cs;cs;cs;cs;cs;cs;cs;cs;cs; // convert from UTF-8 to ASCIIvar str = 'aéióuçÁEÍOÚC';var ascii = codes;console; // convert from UTF-8 to UTF-16LEvar cds = codes;var utf16 = cds;console;