🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
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
npm
Version published
Weekly downloads
272
220%
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