1.0.3 • Published 5 years ago

utf8-bin v1.0.3

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

utf8-bin

A fast UTF-8 encoding and decoding.

npm Build Status Coverage Status

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');

API

utf8Length(str[, offset, length])

strToUtf8(str[, offset, length])

utf8ToStr(buf[, offset, length])

viewUtf8ToStr(view[, offset, length])

License

MIT

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago