Socket
Socket
Sign inDemoInstall

couchdb-audit

Package Overview
Dependencies
2
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    couchdb-audit

An npm and Kanso module for auditing changes to CouchDB documents


Version published
Weekly downloads
16
increased by1500%
Maintainers
5
Install size
1.93 MB
Created
Weekly downloads
 

Readme

Source

couchdb-audit

An npm and Kanso module for auditing changes to couchdb documents.

Node

Install

npm install couchdb-audit

Include

Nano

var audit = require('couchdb-audit').withNano(db, dbName, designName, user)

  • db: a Nano module
  • dbName: the name of the database to use
  • designName: the name of the design document to use
  • user: a String or callback which fetches the username

You can also optionally pass in a separate db name for storing and retrieving audit documents.

var audit = require('couchdb-audit').withNano(db, dbName, auditDbName, designName, user)

Felix

var audit = require('couchdb-audit').withFelix(db, user)

  • db: a Felix CouchDB module
  • user: a String or callback which fetches the username

You can also optionally pass in a separate db name for storing and retrieving audit documents.

var audit = require('couchdb-audit').withFelix(db, auditDb, user)

Kanso

Install

Include "couchdb-audit": null in your kanso.json.

Include

var audit = require('couchdb-audit/kanso').withKanso(db)

Where db is a Kanso DB module.

You can also optionally pass in a separate db name for storing and retrieving audit documents.

var audit = require('couchdb-audit/kanso').withKanso(db, auditDb)

Usage

Then call saveDoc, bulkSave, removeDoc, get, or log.

Caveat

This package is in its infancy, use with caution.

Development

Publishing

kanso publish npm publish

Testing

grunt test for the Node implementation. Deploy to kanso to run the kanso tests.

Build Status

Builds brought to you courtesy of Travis CI.

Build Status

FAQs

Last updated on 20 Jul 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc