1.0.1 • Published 2 years ago

react-zlib v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Welcome to React-Zlib

The zlib module provides compression functionality implemented using Gzip and Deflate/Inflate. It is the part of nodejs core module written in c++ . So the problem is we can't use this module outside of nodejs. so now this package help you to use deflate and inflate zlib functionality in real Javascript, typescript and React.js

Installation

FOSSA Status

Install with NPM or Yarn.

Run npm install react-zlib or yarn add react-zlib to install the library.

Usage

import { deflate, inflate } from 'react-zlib';

const token = "eyJ0eXAiO.../// any token";
const deflated = deflate(token);

console.log(deflated);

const inflated = inflate(token);

console.log(inflated);