
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
gulp-jquery
Advanced tools
A gulp plugin for creating custom jQuery builds via jquery-custom.
##Installation
NPM: npm install gulp-jquery
##Usage
There are two ways to use gulp-jquery
. The first is to source the jQuery src folder from a local jquery install, such as from npm. This will build jQuery using exactly the version you have installed.
var jquery = require('gulp-jquery');
gulp.task('jquery', function () {
return gulp.src('./node_modules/jquery/src')
.pipe(jquery({
flags: ['-deprecated', '-event/alias', '-ajax/script', '-ajax/jsonp', '-exports/global']
}))
.pipe(gulp.dest('./public/vendor/'));
// creates ./public/vendor/jquery.custom.js
});
The second is to use gulp-jquery
as a file source itself. jquery-custom
includes whatever the latest versions of jQuery 1 and 2 are at the time of install.
var jquery = require('gulp-jquery');
gulp.task('jquery', function () {
return jquery.src({
release: 2, //jQuery 2
flags: ['-deprecated', '-event/alias', '-ajax/script', '-ajax/jsonp', '-exports/global']
})
.pipe(gulp.dest('./public/vendor/'));
// creates ./public/vendor/jquery.custom.js
});
FAQs
Gulp plugin for generating custom jQuery builds from source.
The npm package gulp-jquery receives a total of 1 weekly downloads. As such, gulp-jquery popularity was classified as not popular.
We found that gulp-jquery 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.