Socket
Book a DemoInstallSign in
Socket

couchdb-doc_purger

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

couchdb-doc_purger

Purge all deleted CouchDB Documents

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

couchdb-doc_purger

logo

What is Couchdb Doc Purcher?

npm module to completely purge deleted couchdb documents

Usage:

1. In your project folder install

  npm install couchdb-doc_purger

2. Create a file like clean.js:

var i = require('couchdb-doc_purger');

/* settings for specific db  */
i.dbs['foo-db'] = {
  'http://192.168.80.241:5984' : {'user' : 'foo','pass' : 'bar'},
  'http://192.168.80.242:5984' : {'user' : 'foo','pass' : 'bar'},
  'http://foo.com' : {'user' : 'foo','pass' : 'bar'}
};

/* settings for servers  */
i.servers = {
  'http://192.168.80.238:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'},
  'http://192.168.80.240:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'},
  'http://192.168.80.241:5984' : {'user' : 'captain','pass' : 'Tamitasmalogr'}
};


async function start() {
 await i.purge_dbs(); /* to purchage db specific */
 await i.purge_servers(); /* to purchage all deleted docs on a couchdb server  */
}
start();

3.execute the file with

nodejs example.js

License

GNU General Public License v3.0 -

Keywords

couchdb

FAQs

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.