
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@npmcorp/seq-save
Advanced tools
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.
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 #.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..
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'
})
2.0.1 (2022-04-27)
<a name="2.0.0"></a>
FAQs
save a sequence # to a configurable backend (etcd, files, etc.)
The npm package @npmcorp/seq-save receives a total of 2 weekly downloads. As such, @npmcorp/seq-save popularity was classified as not popular.
We found that @npmcorp/seq-save demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 80 open source maintainers collaborating on the project.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.