A simple CRUD-based persistence abstraction for storing objects to any backend data store, v2.9.0 (current stable). Released periodically, with support for in-memory, MongoDB, and custom engines via a plugin architecture. Differentiators: unified API across multiple backends, built-in event hooks for CRUD operations, and a lightweight design that decouples application logic from specific databases.
npm install saveNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a 'save' instance for 'person' model with in-memory engine, performs CRUD operations (create, read, update, delete).
Use const s = save('person') without new.Check engine documentation for supported options.
Use a persistent engine like save-mongodb for production.
For atomic deletes, use engine-specific methods.
Use 'afterCreate', 'afterUpdate', etc. as per v2+.
Use const save = require('save');.Run npm install save.
Use const s = save('person') without new.