0.0.1 • Published 3 years ago

to-text-string v0.0.1

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
3 years ago

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."