A file system object storage library for Node.js (v1.1.6, stable). Provides a simplified Promise-based interface for common object storage operations (set, get, delete) by treating keys as file paths and automatically creating directories. The library aims to stay close to the file system while ensuring consistency across crashes and multiple processes. It supports values as strings, Buffers, or JSON-serializable objects. Differentiators: minimal API, no external dependencies, and a focus on crash consistency over raw speed. Suitable for small-scale local storage needs.
npm install fsosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: setting a JSON-serializable object at a key path, then reading it back.
Design key paths carefully to avoid conflicts between folders and files.
Consider streaming for very large data; fsos is not designed for large files.
Use .toString() or convert to string via encoding parameter if needed.
None.
Check if the key exists before calling get, or wrap in try/catch.
Ensure the key is a string; use .toString() if needed.
Avoid using keys that are prefixes of other keys.
No dependency data recorded yet.