Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nothingrandom/u8array
- Owner: nothingrandom
- License: mit
- Created: 2020-01-20T15:50:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T17:07:33.000Z (about 1 year ago)
- Last Synced: 2024-10-29T03:41:49.813Z (about 2 months ago)
- Topics: array-buffer, nodejs, u8, uint8
- Language: JavaScript
- Homepage:
- Size: 835 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)