react-native-gzip
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

react-native-gzip

Fast gzip to compress strings for android & ios in React Native

Installation

npm install react-native-gzip

Usage

import { deflate, inflate } from 'react-native-gzip';
const data = `hello world`;
const compressed = await deflate(data); // Returns a base64 string of compressed data
const decompressed = await inflate(compressed); // Decompress the data to original string value

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    2,287
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    2,287
  • 1.0.0
    997

Package Sidebar

Install

npm i react-native-gzip

Weekly Downloads

3,284

Version

1.1.0

License

MIT

Unpacked Size

29 kB

Total Files

21

Last publish

Collaborators

  • ammarahm-ed