You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

compressiontool

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compressiontool

generic module to handle different types of compression

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
101
129.55%
Maintainers
1
Weekly downloads
 
Created
Source

CompressionTool

Simple the various compression technologies into a single management function for node.js and add some new generai capabilities.

Usage

const anError=(err)=>console.error("failed with "+err)
const testData="abcdefghijklimnopqrstuvwxyz0123456789"
const compressor=new compressionTool()
compressor.setGzip();
compressor.compress(testData,
	(compressed)=>{
		compressor.decompress(compressed,(data)=>{
			if(data==testData) console.log("working correctly") 
			else anError("compressed/decompressed output not equal to orginal")
		}
		,anError)
	},
	anError
);

Support

Raises issues on https://gitlab.com/peter.prib/compressionTool/-/issues

License

GNU GENERAL PUBLIC LICENSE Version 3,

Keywords

compression

FAQs

Package last updated on 02 Aug 2023

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.