stringencoding
0.0.0 • Public • Published stringencoding
basic usage
var uint8array = TextEncoder(encoding).encode(string);
var string = TextDecoder(encoding).decode(uint8array);
streaming decode
var string = '';
var decoder = TextDecoder(encoding), buffer;
while (buffer = next_chunk()) {
string += decoder.decode(buffer, { stream:true });
}
string += decoder.decode();
install
npm install stringencoding
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.0
6
Version History
- VersionDownloads (Last 7 Days)
- 0.0.0
6
Package Sidebar
Install
Weekly Downloads
License
Apache License 2.0