
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
view-builder
Advanced tools
A node utility to create and update couchdb views
npm install -g view-builder
Updates the views found in the specified database from the specified definitions
view-builder --url http://localhost:5984/databasename --defs ./path/to/views.js
If omitted, the defs
parameter will default to a file named views.js
in the current folder.
This relies on views.js
containing something like the following:
exports.designDocumentName = {
views: {
viewName: {
map: function () { }
}
},
filters: {
filter1: function() {}
}
};
The config file can contain multiple design documents, each of which can contain multiple views and filters.
To avoid accidental rebuilds of entire views, view-builder
will not automatically overwrite an existing design document (see #1). If this behaviour is required then you can use the force
flag:
view-builder --url http://... --force
Generates a view definition file based on the views already in the database
view-builder --url http://localhost:5984/databasename --defs ./path/to/views.js --generate
If omitted, the defs
parameter will default to a file named views.js
in the current folder.
var builder = require("view-builder");
builder("http://localhost:5984/databasename", "./path/to/views.js");
// or...
builder("http://localhost:5984/databasename", {
designDocumentName = {
views: {
viewName: {
map: function () { }
}
},
filters: {
filter1: function() {}
}
}
});
As in the command line example, the second parameter will default to a file named views.js
in the current folder.
FAQs
Builds views for couch db
The npm package view-builder receives a total of 0 weekly downloads. As such, view-builder popularity was classified as not popular.
We found that view-builder 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.