npm.io
1.0.1 • Published 4 years ago

react-zlib

Licence
MIT
Version
1.0.1
Deps
1
Size
7 kB
Vulns
0
Weekly
0

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);

Keywords