u8array
v1.0.2
Published
Create Uint8Array from string
Downloads
3
Readme
u8array
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 Hollway