https://github.com/nothingrandom/u8array
Create Uint8Array from string
https://github.com/nothingrandom/u8array
array-buffer nodejs u8 uint8
Last synced: 3 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T17:07:33.000Z (almost 2 years ago)
- Last Synced: 2024-12-21T21:42:22.895Z (7 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

> 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)