charset-encoder-js

1.0.1 • Public • Published

charset-encoder-js

Simple charset encoder with JavaScript.

Features

  • convert from Shift-JIS Uint8Array to Unicode Strings.
  • no other encoding support but might support someday.

How to use on Browser

<script src="build/charsetencoder.min.js"></script>
<script>
var encoder = new CharsetEncoder();
var shiftJisArray = new Uint8Array([0x82, 0xa0, 0x82, 0xa2, 0x82, 0xa4]);
console.log(encoder.s2u(shiftJisArray)); // あいう
</script>

How to install

$ npm install charset-encoder-js

How to load on Node.js

require('charset-encoder-js');

How to build

$ npm install
$ npm run all

Readme

Keywords

none

Package Sidebar

Install

npm i charset-encoder-js

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

497 kB

Total Files

11

Last publish

Collaborators

  • takahirox