Licence
CC0-1.0
Version
0.0.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0
to-text-string
Convert Various Data Formats, including ArrayBuffer and Buffer, to a Text String. Works on NodeJS and very old browsers where FileReader doesn't exist.
install
npm install to-text-string
limitations
- only works on ASCII text
usage
const toTextString = require("to-text-string");
// data can be an array buffer, buffer, Uint8Array or string
const result = toTextString(data);
// result is "Hello, World."