@fynnix/utf8-bytes

0.0.1 • Public • Published

utf8-bytes

return an array of all the bytes in a unicode string

build status

This module is like Buffer(str).toJSON(), but without using Buffer.

example

var bytes = require('utf8-bytes');
console.log(bytes('[☉,☼]'));

output:

$ node example/utf8-bytes.js
[ 91, 226, 152, 137, 44, 226, 152, 188, 93 ]

methods

var bytes = require('utf8-bytes')

bytes(str)

Return an array of integers from 0 through 255, inclusive, representing the bytes in the unicode string str.

install

With npm do:

npm install utf8-bytes

license

MIT

Package Sidebar

Install

npm i @fynnix/utf8-bytes

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

4.22 kB

Total Files

7

Last publish

Collaborators

  • fynnix