New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

decmpfs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decmpfs

Write files straight to OS transparent filesystem compression (APFS decmpfs / btrfs / NTFS) in one pass.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

decmpfs — by socket labs

Socket Badge

Apply the operating system's transparent per-file filesystem compression to a file — smaller on disk, byte-identical on read, decompressed by the kernel at near-native speed. macOS APFS (decmpfs/LZVN), Linux btrfs (zstd→lzo→zlib), Windows NTFS (LZNT1).

This is the Node addon for decmpfs. The prebuilt native binary ships as an optional dependency per platform (@decmpfs/<triple>); pnpm installs only the one matching the host.

Install

npm install decmpfs

Usage

const { writeDecmpfsFile, copyDecmpfsFile } = require('decmpfs')

// Write bytes straight to an OS-compressed file — one pass, no recompress.
const result = writeDecmpfsFile('data.bin', bytes)

// Compression-preserving copy (clonefile / FICLONE, or recompress).
copyDecmpfsFile('data.bin', 'copy.bin')

See the repository for the full API and the Rust crate.

License

MIT

Keywords

apfs

FAQs

Package last updated on 27 Jul 2026

Related posts