Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cetriolino

Build Status Maintainability Greenkeeper badge

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