ZSTD bindings for React-Native
npm install react-native-zstd
or
yarn add react-native-zstd
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}`)
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library