You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HuangHai 41cf4d6b99
init
4 months ago
..
.editorconfig init 4 months ago
.gitattributes init 4 months ago
LICENSE init 4 months ago
README.md init 4 months ago
index.d.ts init 4 months ago
index.js init 4 months ago
index.test.js init 4 months ago
package.json init 4 months ago

README.md

npm node size

utf8array2str

Uint8Array convert to string.

Install

Local

npm:

$ npm install --save utf8array2str

yarn:

$ yarn add utf8array2str

Global

npm:

$ npm install -g utf8array2str

yarn:

$ yarn add global utf8array2str

Browser

<script src="utf8Array2Str.js"></script>

Usage

Using commonjs

const utf8Array2Str = require('utf8array2str');

utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
// => hello

Using es6 or typescript

import utf8Array2Str from 'utf8array2str';

utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
// => hello

Using global

<script>
    utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
    // => hello
</script>

License

MIT © PorkyKe