Skip to content

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';// CompressconstcompressionLevel: number=3;constcompressed=compress("Hello World!",compressionLevel);console.log(Buffer.from(compressed).toString('base64'))// Decompressconstdecompressed: 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

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages