lzw-compressor
    TypeScript icon, indicating that this package has built-in type declarations

    21.6.5 • Public • Published

    LZW Compressor Tweet

    Build Status License NPM version Website NPM downloads

    LZW compressor module from Glize library.

    Usage

    npm install lzw-compressor --save
    import { compress, decompress } from 'lzw-compressor';
    
    /**
     * Compress data string using LZW lossless data compression algorithm.
     * @param {string} str Data to compress.
     * @return {string} Returns compressed data.
     */
    const encoded = compress(input);
    
    /**
     * Decompress data string compressed with the LZW algorithm.
     * @param {string} str Data to compress.
     * @return {string} Returns compressed data.
     */
    const decoded = decompress(encoded);

    For more information please visit Glize project page.

    Install

    npm i lzw-compressor

    Homepage

    glize.js.org

    DownloadsWeekly Downloads

    20,150

    Version

    21.6.5

    License

    Apache-2.0

    Unpacked Size

    16.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • vpodk
    • krailo