nothingrandom / u8array

Create Uint8Array from string
MIT License
1 stars 1 forks source link
array-buffer nodejs u8 uint8

u8array

Travis (.com)

Create Uint8Array from string

Install

$ yarn add u8array
$ npm install u8array

Usage (require in JS)

const u8 = require('u8array');

// returns Uint8Array [116, 101, 115, 116];
const uint8object = u8('test');

// returns [116, 101, 115, 116];
const array = [...u8('test')];

License

MIT © Benjamin Grant