@brtmvdl/database
v1.0.5
Published
Easy Database Node.js library
Downloads
26
Readme
@brtmvdl/database
Easy Database Node.js library
social & donate
how to install
# bash
npm i @brtmvdl/database
how to use
// index.js
import { Database } from '@brtmvdl/database'
const db = new Database({ type: 'fs', config: '/data' })
const users = db.in('users')
const user = users.new()
user.writeMany({ email: '[email protected]', password: 'password' })
console.log('user', user.readManyString(['email', 'password']))
# bash
node index.js