@3-/utf8

0.0.4 • Public • Published

@3-/utf8

test/main.coffee :

#!/usr/bin/env coffee

import utf8e from '@3-/utf8/utf8e'
import utf8d from '@3-/utf8/utf8d'
import autoe from '@3-/utf8/autoe'

console.log utf8d utf8e '测试'

console.log autoe ''
console.log autoe Buffer.from [1,2,3]

output :

测试
Uint8Array(3) [ 232, 189, 166 ]
<Buffer 01 02 03>

About This Project

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于本项目

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Dependents (15)

Package Sidebar

Install

npm i @3-/utf8

Weekly Downloads

112

Version

0.0.4

License

Apache-2.0

Unpacked Size

3.27 kB

Total Files

8

Last publish

Collaborators

  • i18n-now