🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

charset-encoder-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charset-encoder-js

Simple charset encoder with JavaScript

1.0.1
latest
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 03 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts