New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-zstd

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-zstd

ZSTD for React Native

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
15
25%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-zstd

ZSTD compression bindings for React Native, powered by Nitro Modules.

Installation

yarn add react-native-zstd react-native-nitro-modules

For iOS, run pod install in your ios directory.

Usage

import { compress, decompress } from 'react-native-zstd';

// Compress a string (returns ArrayBuffer)
const compressed = compress('Hello World!', 3);

// Decompress back to string
const decompressed = decompress(compressed);
console.log(decompressed); // "Hello World!"

API

compress(data: string, compressionLevel?: number): ArrayBuffer

Compresses a UTF-8 string using ZSTD.

  • data - The string to compress
  • compressionLevel - Compression level (default: 3). Higher = better compression, slower speed.

decompress(data: ArrayBuffer): string

Decompresses ZSTD-compressed data back to a UTF-8 string.

  • data - The compressed data as an ArrayBuffer

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

Keywords

react-native

FAQs

Package last updated on 26 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts