to-text-string

    0.0.1 • Public • Published

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

    Install

    npm i to-text-string

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    CC0-1.0

    Unpacked Size

    8.95 kB

    Total Files

    4

    Last publish

    Collaborators

    • danieljdufour