Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iconv-js

Hikaru0284public domain0.3.5

Convert character encodings in pure javascript.

iconv, convert, charset, shift-jis, sjis

readme

iconv-js - pure javascript character encoding conversion

Usage

var iconv = require('iconv-js');

// Convert from SJIS buffer to UTF8 buffer.
utf8_buffer = iconv.fromSJIS(sjis_buffer);

// Convert from UTF8 buffer to SJIS buffer.
sjis_buffer = iconv.toSJIS(utf8_buffer);

Supported encodings

  • SJIS-win <-> UTF8

TODO

  • Add more encodings.