
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@javascriptcommon/react-native-xz
Advanced tools
Native XZ/LZMA2 decompression for React Native (TurboModules)
Native XZ/LZMA2 decompression for React Native. Provides fast, efficient decompression of .xz files using native libraries on both iOS and Android.
npm install @javascriptcommon/react-native-xz
# or
yarn add @javascriptcommon/react-native-xz
cd ios && pod install
No additional setup required.
import { decompressFile, decompressToString } from '@javascriptcommon/react-native-xz';
// Decompress a file to another file
const outputPath = await decompressFile('/path/to/file.xz', '/path/to/output');
// Decompress a file directly to a string
const content = await decompressToString('/path/to/file.xz');
decompressFile(inputPath: string, outputPath: string): Promise<string>Decompresses an XZ file to a destination path.
inputPath: Path to the .xz compressed fileoutputPath: Path where decompressed file will be writtendecompressToString(inputPath: string): Promise<string>Decompresses an XZ file and returns the contents as a UTF-8 string.
inputPath: Path to the .xz compressed fileMIT
FAQs
Native XZ/LZMA2 decompression for React Native (TurboModules)
We found that @javascriptcommon/react-native-xz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.