u8array

1.0.2 • Public • Published

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 Hollway

/u8array/

    Package Sidebar

    Install

    npm i u8array

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.27 kB

    Total Files

    6

    Last publish

    Collaborators

    • nothingrandom