Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 455 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 455 Bytes

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