Skip to content

jamesthomp/react-native-zstd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-zstd

ZSTD bindings for React-Native

Installation

npm install react-native-zstd

or

yarn add react-native-zstd

Usage

import { compress, decompress } from "react-native-zstd";
import { Buffer } from 'buffer';

// Compress
const compressionLevel: number = 3;
const compressed: Buffer = compress("Hello World!", compressionLevel);
console.log(compressed.toString('base64'))

// Decompress
const decompressed: string = decompress(compressed);
console.log(`decompressed: ${decompressed}`)

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

About

ZSTD bindings for React Native

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 29.4%
  • Ruby 14.0%
  • Java 12.8%
  • TypeScript 9.0%
  • Kotlin 8.5%
  • Objective-C 8.4%
  • Other 17.9%