Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
66
increased by26.92%
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

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc