README
utf8-bin
A fast UTF-8 encoding and decoding.
Installation
With npm:
npm install utf8-bin
With yarn:
yarn add utf8-bin
Usage
ES Modules
import { strToUtf8, utf8ToStr } from 'utf8-bin'; // ES6 (codePoint)
import { strToUtf8, utf8ToStr } from 'utf8-bin/legacy'; // ES5
// Node v8.6 --experimental-modules
// Node v12.0 --experimental-modules --es-module-specifier-resolution=node
import { strToUtf8, utf8ToStr } from 'utf8-bin/index';
CommonJS
const { strToUtf8, utf8ToStr } = require('utf8-bin');