utf16-to-sjis
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

utf16-to-sjis npm version

A small UTF-16 to Shift-JIS converter. 17KB if .gz compressed.

This library only supports Japanese characters in BMP (U+0000 to U+FFFF) because there are no characters in SMP that should be converted to Shift-JIS.

Usage

const { convert } = require("utf16-to-sjis");

const input = "文字列をShiftJISにヘンカンします。ⅰⅱⅲⅳⅴ ①②③㍼㍻";
const encoded = convert(input);

console.log(encoded);

Package Sidebar

Install

npm i utf16-to-sjis

Weekly Downloads

11

Version

1.1.1

License

MIT

Unpacked Size

75.6 kB

Total Files

15

Last publish

Collaborators

  • okaxaki