0.3.4 • Published 5 years ago
cetriolino v0.3.4
cetriolino
Simple key-value storage, with no runtime dependencies, written in TypeScript.
Heavily insipired by pickleDB.
Usage
import Cetriolino from 'cetriolino'
const db = new Cetriolino('db.json')
db.set('one', 1)
db.get('one') // 1
db.lcreate('hey') // or: db.set('hey', [])
db.lpush('hey', ['oh', "let's", 'go']) // 3
db.get('hey') // [ 'oh', 'let\'s', 'go' ]
db.dump()
Install
$ npm install cetriolino
or
$ yarn add cetriolino
To-Do
- Add support for nested dictionaries