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.
gulp-parameterized
Advanced tools
Changelog
v0.1.1 (2016-11-28)
Documentation
Readme
Parameterize gulp tasks.
NOTE: REQUIRES GULP 4.0
See CHANGELOG for latest changes.
npm install --save-dev gulp-parameterized
You can accept parameters in a task by wrapping the task function in parameterized()
:
var parameterized = require('gulp-parameterized');
gulp.task('hello', parameterized(function(cb, params) {
console.log('hello ' + params.name + '!');
cb();
}));
You can then pass parameters to a task on the command line:
$ gulp hello --name world
[23:43:51] Using gulpfile ~/hello-example/gulpfile.js
[23:43:51] Starting 'hello'...
hello world!
[23:43:51] Finished 'hello' after 1.98 ms
Use parameterized.series()
and parameterized.parallel()
instead of gulp.series()
and gulp.parallel()
if you want to call another task in your gulpfile and pass parameters to it:
gulp.task('hello-world', parameterized.series('hello --name world'));
gulp.task('hello-gulp', parameterized.series('hello --name gulp'));
You can then invoke the hello-gulp
task on the command line:
$ gulp hello-gulp
[23:49:38] Using gulpfile ~/hello-example/gulpfile.js
[23:49:38] Starting 'hello-gulp'...
[23:49:38] Starting 'hello'...
hello gulp!
[23:49:38] Finished 'hello' after 1.28 ms
[23:49:38] Finished 'hello-gulp' after 4.91 ms
FAQs
Parameterize gulp tasks
The npm package gulp-parameterized receives a total of 125 weekly downloads. As such, gulp-parameterized popularity was classified as not popular.
We found that gulp-parameterized 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.