Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nothingrandom/u8array

Create Uint8Array from string
https://github.com/nothingrandom/u8array

array-buffer nodejs u8 uint8

Last synced: about 16 hours ago
JSON representation

Create Uint8Array from string

Awesome Lists containing this project

README

        

# u8array
![Travis (.com)](https://img.shields.io/travis/com/nothingrandom/u8array)
> Create Uint8Array from string

## Install

``` bash
$ yarn add u8array
$ npm install u8array
```

## Usage (require in JS)
``` 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](https://nothingrandom.com)