Socket
Socket
Sign inDemoInstall

lzw-compressor

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lzw-compressor

LZW compressor module from Glize library.


Version published
Weekly downloads
56K
decreased by-1.49%
Maintainers
1
Install size
33.3 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 29 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc