react-native-native-lzstring
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

react-native-native-lzstring

Native LZString for react native

Ported from the excellent lz-string library by @pieroxy Along with adapted code from the C++ implementation, and partially from Qt/C++ implementation.

Working for both iOS and Android (*you need JNI installed for Android).

Installation

npm install react-native-native-lzstring

Usage

import { compress, decompress } from "react-native-native-lzstring";

// ...

const resultCompress = await compress("hello world");
const decompressed = await decompress(resultCompress);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i react-native-native-lzstring

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    3.1 MB

    Total Files

    119

    Last publish

    Collaborators

    • switt