New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@micromint1npm/porro-nulla-natus

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@micromint1npm/porro-nulla-natus

Save [CouchDB sequence #s](http://docs.couchdb.org/en/2.1.1/api/database/changes.html#changes-feeds) to a configurable backend. This allows you to resume CouchDB replication from the point where you left off.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

seq-save

Save CouchDB sequence #s to a configurable backend. This allows you to resume CouchDB replication from the point where you left off.

see also: changes-stream.

This is a replacement to seq-file, adding support for additional backends.

API

  • SeqSave(path, opts): where path is the path on disk to save the file to or the key to use for an alternative backend, such as etcd. Returns a new sequence saving instance.
  • <Promise> save.save(sequence): save the sequence to the configured backend. Returns a Promise which will resolve once the value is saved.
  • <Promise> save.read(): Returns a Promise that will resolve with the current sequence #.

Backends

File (Default)

To save sequence files to the filesystem, simply provide the following configuration:

const SeqSave = require('seq-save')
const seq = new SeqSave('my-sequence.seq', {
  type: 'file'
})

It's worth noting that file is the default backend, so you can also simply provide an empty configuration object..

etcd

To save sequence files to etcd, simply provide the following configuration:

NOTE: if you specify a path in the etcd backend that begins with a leading dot character ., it will be removed.

const Save = require('seq-save')
const seq = new SeqSave('my-sequence.seq', {
  type: 'etcd',
  host: 'http://127.0.0.1:2379'
})

Keywords

FAQs

Package last updated on 04 May 2024

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