1.0.1 • Published 3 years ago

charset-encoder-js v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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
1.0.1

3 years ago

1.0.0

8 years ago