A database so minimal, you'll never mind it exists.
This is a database that's intentionally as simple as possible. It's so basic that you'll probably never mind using it. Get it? "Never mind" + "DB" = neverminDB?
...yeah, we know it's not that funny.
- ✅ Store key-value pairs in memory
- ✅ Retrieve values by key
- ✅ Delete keys
- ✅ List all keys
- ✅ That's it. Seriously.
npm install nevermindb
const NeverminDB = require('nevermindb');
const db = new NeverminDB();
// Store something (if you care)
db.set('important_data', 'probably not that important');
// Get it back (if you remember what you stored)
const data = db.get('important_data');
// Delete it (if you change your mind)
db.delete('important_data');
// List all keys (if you're curious)
const keys = db.keys();
# Run the CLI
npm run cli
# Or use the global command (after npm install -g)
nevermindb
Available commands:
set <key> <value>
- Store a key-value pairget <key>
- Retrieve a valuedelete <key>
- Delete a key-value pairhas <key>
- Check if a key existskeys
- List all keysvalues
- List all valuessize
- Show database sizeclear
- Clear all datastats
- Show database statsrandom
- Get a random keyhelp
- Show helpexit
- Exit the CLI
# Start the web interface
npm run web
Then open your browser to http://localhost:3000
for a beautiful web interface to interact with your minimal database.
set(key, value)
- Store a key-value pairget(key)
- Retrieve a value by keydelete(key)
- Delete a key-value pairhas(key)
- Check if a key existskeys()
- Get all keysvalues()
- Get all valuesentries()
- Get all key-value pairsclear()
- Clear all datasize()
- Get the number of key-value pairsisEmpty()
- Check if the database is emptyrandomKey()
- Get a random key (because why not?)stats()
- Get database statistics
const db = new NeverminDB();
// Store some data
db.set('name', 'neverminDB');
db.set('version', '1.0.0');
db.set('purpose', 'to be as minimal as possible');
// Retrieve data
console.log(db.get('name')); // 'neverminDB'
// Check if key exists
console.log(db.has('version')); // true
// Get all keys
console.log(db.keys()); // ['name', 'version', 'purpose']
// Get database size
console.log(db.size()); // 3
// Get random key
console.log(db.randomKey()); // random key from the database
// Get stats
console.log(db.stats());
# Run the basic example
npm start
# Run tests
npm test
# Start CLI
npm run cli
# Start web interface
npm run web
Honestly? We're not sure either. But sometimes you need a database that's so simple, you never mind it's there.
MIT (because we don't really mind what you do with it)