Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
couchdb-indexer
Advanced tools
Readme
Both a requireable module and a CLI tool for indexing (caching) CouchDB views.
The utility functions by retrieving a database's design documents and then requesting a single row from a single view on each design document. The effect is that all views are then indexed and results can be thereafter retrieved without delay.
Options exist to filter the design documents that are indexed and to limit the number of threads used for indexing.
$ npm install --save couchdb-indexer
Works with both callbacks and promises.
var ixcouch = require('couchdb-indexer');
// callback
ixcouch('http://localhost:5984/my-db', function ( err ) {
// ...
});
// promise
ixcouch('http://localhost:5984/my-db').then(function () {
// success
});
Optionally pass an options object as the second argument. Properties:
[options.filter=null] {string|RegExp}
: Only index views on design docs whose names match RegExp[options.maxActiveTasks=NaN] {integer}
: View queries are queued so as to attempt to limit the maximum number of concurrent active tasks on the CouchDB server.$ npm install -g couchdb-indexer
$ ixcouch my-db
$ ixcouch [options] <database_url>
--filter=<string>
Only index views on design docs whose names match JavaScript RegExp
--max-active-tasks=<integer>
View queries are queued so as to attempt to limit the maximum number of concurrent active tasks on the CouchDB server.
Active tasks are queried via route: GET {server_url}/_active_tasks.
By default, there is no maximum - i.e. all view queries are sent simultaneously.
DATABASE URL
Can be supplied in various formats:
Full URL
{host}/{database_name} - inferred protocol: http
:{port}/{database_name} - inferred protocol: http; inferred hostname: 127.0.0.1
{database_name} - inferred protocol: http; inferred host: 127.0.0.1:5984
FAQs
Create or update indexes for all of your CouchDB via a single command / call.
The npm package couchdb-indexer receives a total of 4 weekly downloads. As such, couchdb-indexer popularity was classified as not popular.
We found that couchdb-indexer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.