Socket
Book a DemoInstallSign in
Socket

depo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depo

Depo is a powerful, simple Node.js database.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

depo


discord-server npm-version npm-downloads patreon

npm-info

About

Depo is a powerful, simple, key-value Node.js database.

Installation

Stable: npm i depo

Master: npm i boltxyz/depo

Dev: not supported yet

Examples

const Depo = require('depo');
const db = new Depo.Database({
    name: 'test' // The database is optional. (Default is depo)
});

// Sets a value to a key
db.set('key', 'value');
db.set('objectkey', {
    name: 'Depo',
    id: 12345
});

// Gets a value
db.get('key'); // value
db.get('objectkey') // { name: 'Depo', id: 12345 }

// Whether or not, the key exists
db.has('key'); // true

FAQs

Package last updated on 12 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts