utf8-lite
1.3.0 • Public • Published utf8-lite
![Build](https://travis-ci.org/kevlened/utf8-lite.svg?branch=master)
isomorphic utf8 library in 113 bytes
Install
npm install utf8-lite
Usage
const utf8 = require('utf8-lite')
utf8.toUtf8('hello 你好')
utf8.fromUtf8('hello \xE4\xBD\xA0\xE5\xA5\xBD')
Can it be smaller?
If you use ES6 imports with a bundler that supports tree-shaking, yes!
import { toUtf8 } from 'utf8-lite'
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.3.0
0
Version History
Package Sidebar
Install
Weekly Downloads