New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

docs-db

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docs-db

Simple docs database with history support.

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

docs-db

Build Status Coverage Status

Simple docs database with history support.

Install

$ npm install docs-db

Usage

const DocsDb = require("docs-db")

const db = new DocsDb()

API

DocsDb([data])

data

Type: object with db and history keys

const DocsDb = require("docs-db")

const db = new DocsDb()

db.export

Export the whole content with history in an object with db and history keys. You can pass the result to the constructor to initialize it with content.

db.historyCount

db.docCount

db.docIds

db.docMetas

db.sizeCurrent

db.sizeHistory

db.size

db.getDoc(_id, [_rev])

db.deleteDoc(_id, currentRev)

db.revertDoc(_id, currentRev, [to])

db.updateDoc(newDoc, [currentRev])

License

AGPL-v3 © 2018 Robin Millette

FAQs

Package last updated on 30 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