Skip to content
🥒 Simple key-value storage
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
__tests__
src
.gitignore
.npmignore
.prettierrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
jest.config.js
package-lock.json
package.json
rollup.config.js
tsconfig.json

README.md

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
You can’t perform that action at this time.