workflow-database
v1.0.3
Published
Small, simple JSON file-based database for rapidly launching small projects requiring simple data storage.
Maintainers
Readme
Small, simple JSON file-based database for rapidly launching small projects requiring simple data storage.
Installation
npm install workflow-databaseUsage
const Database = require("workflow-database");
// Initialize database
const db = new Database("data");
// Insert a document
db.insertOne("users", { name: "Alice" });
// Find a document by ID
const user = db.findById("users", "123abc");
// Update a document
db.updateById("users", "123abc", { name: "Alice Smith" });
// Delete a document
db.deleteById("users", "123abc");Features
- ⚡️ Fast and lightweight
- 📁 Simple JSON file-based storage
- 🚀 Ideal for rapid prototypes and small tools
Info
Full API Docs: Coming Soon
License: ISC
Author: Adam Ballinger
