0.7.1 • Published 10 months ago

@jamesthomp/react-native-zstd v0.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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 = compress("Hello World!", compressionLevel);
console.log(Buffer.from(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

0.7.1

10 months ago

0.6.6

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago