A Node.js library for blob storage on filesystems with streams and promises API. Current stable version is 4.1.0, released under ISC license and requiring Node >= 16. It provides atomic operations, partial file support, and optional exclusive locking. Compared to similar packages like 'fs-blob-store', this library offers simpler API and built-in commit/partial file handling.
npm install fs-blob-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a storage instance, writing a blob using streams, committing it, and reading it back.
Use import syntax or upgrade to Node 16+ and set { "type": "module" } in package.json.Use try/catch or check existence before reading with stat.
After writing via createWriteStream, always call storage.commit(key) to finalize the blob.
Use on POSIX-like filesystems (Linux, macOS).
Use with caution; consider file locking alternatives.
Set { "type": "module" } in package.json or use dynamic import().Ensure the storage directory exists and the key is correct.
Remove the existing blob first or disable exclusive mode.
Use default import: import FsBlobStorage from 'fs-blob-storage'.