1.0.0 • Published 4 years ago
utf8array2str v1.0.0
utf8array2str
Uint8Array convert to string.
Install
Local
npm:
$ npm install --save utf8array2stryarn:
$ yarn add utf8array2strGlobal
npm:
$ npm install -g utf8array2stryarn:
$ yarn add global utf8array2strBrowser
<script src="utf8Array2Str.js"></script>Usage
Using commonjs
const utf8Array2Str = require('utf8array2str');
utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
// => helloUsing es6 or typescript
import utf8Array2Str from 'utf8array2str';
utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
// => helloUsing global
<script>
utf8Array2Str(new Uint8Array([104, 101, 108, 108, 111]));
// => hello
</script>License
1.0.0
4 years ago