Socket
Socket
Sign inDemoInstall

couchdb-doc_purger

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    couchdb-doc_purger

Purge all deleted CouchDB Documents


Version published
Weekly downloads
4
Maintainers
1
Install size
26.3 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 16 Oct 2019

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