Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pako

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pako

zlib port to javascript - fast, modularized, with browser support

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28M
increased by10.56%
Maintainers
1
Weekly downloads
 
Created

What is pako?

The pako npm package is a high-speed zlib port to JavaScript which works in the browser and node.js. It provides compression and decompression functionalities using the zlib library, which is widely used for data compression.

What are pako's main functionalities?

Compression

This feature allows you to compress a string or binary data using pako's deflate method.

const pako = require('pako');
const input = 'String to compress';
const compressed = pako.deflate(input);

Decompression

This feature allows you to decompress data that was compressed using pako's deflate method or compatible zlib compression.

const pako = require('pako');
const compressed = new Uint8Array([]); // Use a previously compressed Uint8Array
const decompressed = pako.inflate(compressed);

Gzip Compression

This feature allows you to compress data using gzip, which is a file format and a software application used for file compression and decompression.

const pako = require('pako');
const input = 'String to compress';
const compressed = pako.gzip(input);

Gzip Decompression

This feature allows you to decompress data that was compressed using pako's gzip method.

const pako = require('pako');
const compressed = new Uint8Array([]); // Use a previously gzip compressed Uint8Array
const decompressed = pako.ungzip(compressed);

Other packages similar to pako

Keywords

FAQs

Package last updated on 01 May 2014

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