Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb-sync

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-sync

generic couchdb replicator which is basically an eventemitter

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

couchdb-sync

It's an ugly module, needs lot of a refactoring, i mainly ported @dominictarr's [level-couch-sync][lcs] to a general sync module.

I did this because I'm trying to replicate npmjs registry to riak.

API

var sync = require("couchdb-sync")("https://fullfatdb.npmjs.com/registry");
sync
  .on( "data", function( doc ){
    // doc is a couchdb doc
  })
  .on( "progress", function( progress ){
    // progress of replication
  })
  .on( "fail", function( err ){
    // ohhh uhhh npm is down?!:D
  });

It emits data and progress events, and you can even pause and resume syncing by calling instance.feed.pause() and instance.feed.resume() methods. (It can be useful if data comes too fast).

[lcs][https://github.com/dominictarr/level-couch-sync]

Keywords

FAQs

Package last updated on 08 Apr 2014

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc