ZSTD bindings for React-Native
npm install react-native-zstdor
yarn add react-native-zstdimport{compress,decompress}from"react-native-zstd";import{Buffer}from'buffer';// CompressconstcompressionLevel: number=3;constcompressed=compress("Hello World!",compressionLevel);console.log(Buffer.from(compressed).toString('base64'))// Decompressconstdecompressed: 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