This package has been deprecated
Author message:
WARNING: This project has been renamed to @asm/utf8. Install using @asm/utf8 instead.
utf8-bin
1.0.3 • Public • Published utf8-bin
A fast UTF-8 encoding and decoding.
Installation
With npm:
With yarn:
Usage
ES Modules
import { strToUtf8, utf8ToStr } from 'utf8-bin';
import { strToUtf8, utf8ToStr } from 'utf8-bin/legacy';
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
Package Sidebar
Install
Weekly Downloads