{"library":"slayer.db","title":"Slayer.DB","description":"Slayer.DB is a lightweight, easy-to-use database module for Node.js offering two backends: JSON-file-based (slayersDBJSON) and MongoDB (slayersDBMongo). Version 1.5.11 supports CRUD operations, nested key access, array manipulation, and table partitioning. It is designed for small-to-medium projects where simplicity is prioritized over scalability, with automatic save cooldowns to prevent corruption. Unlike heavier ORMs, it provides a minimal API with no complex schemas.","language":"javascript","status":"active","last_verified":"Sat May 09","install":{"commands":["npm install slayer.db"],"cli":null},"imports":["import { slayersDBMongo } from 'slayer.db'","import { slayersDBJSON } from 'slayer.db'","import * as slayer from 'slayer.db'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { slayersDBJSON } from 'slayer.db';\n\nconst db = new slayersDBJSON({ name: 'test' });\ndb.set('user.name', 'Alice');\ndb.set('user.age', 30);\nconsole.log(db.get('user.name')); // 'Alice'\nconsole.log(db.has('user.age')); // true\ndb.delete('user.age');\nconsole.log(db.has('user.age')); // false\ndb.save();\ndb.clear();","lang":"typescript","description":"Demonstrates basic CRUD operations with slayersDBJSON: set, get, has, delete, save, and clear.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}