1.1.0 • Published 8 years ago
bytecode v1.1.0
bytecode
Decode or Encode utf8 byte code rather than char code, support all unicode
Installation
npm i bytecode
Usage
var byteCode = require('bytecode')
byteCode.decode('中文')
// => [228, 184, 173, 230, 150, 135]
byteCode.encode([97, 98, 99])
// => 'abc'