
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.
A CLI solution inspired by [Commander.js](https://github.com/tj/commander.js) and [gulp](https://github.com/gulpjs/gulp).
A CLI solution inspired by Commander.js and gulp.
Essentially I was using gulp for all sorts of things, and got sick of having to either separate anything that had parameters out of the gulpfile, or just convert those parameters into options. Also I was not happy with any of the existing option parsers. And I wanted built in help with colors.
var sergeant = require('sergeant')
var app = sergeant({
description: 'an example application'
})
app.command('command1', {
// the settings object is optional
// description, parameters, and options are used for --help
description: 'an example command',
parameters: {
parameter1: 'an example parameter'
},
options: {
'--option1': 'an example option'
},
// aliases are converted to options
aliases: {
o: { option1: true }
'not-option1': { option1: false }
}
}, function (parameter1, options, done) {
// validate parameters and options by throwing exceptions
assert.ok(typeof parameter1 === 'string')
// actions can have any number of parameters
// they can use the done callback, or use any of the other strategies of completion supported by async-done
done()
})
app.command('command2',
// parallel and series return a function that takes options and done. Options are passed along to all nested functions when run. Every function may use the done callback or anything supported by async-done
sergeant.parallel(
function (options, done) {
},
sergeant.series(
function (options) {
},
function (options) {
}
)
))
FAQs
Exports arg and kleur/colors.
The npm package sergeant receives a total of 3 weekly downloads. As such, sergeant popularity was classified as not popular.
We found that sergeant 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.