
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@types/gulp
Advanced tools
@types/gulp provides TypeScript type definitions for the Gulp task runner, allowing developers to use Gulp with TypeScript and benefit from type checking and autocompletion.
Creating a Gulp Task
Defines a simple Gulp task named 'default' that logs a message to the console.
const gulp = require('gulp');
gulp.task('default', function() {
console.log('Gulp task running');
});
Processing Files
Defines a Gulp task named 'minify-js' that minifies JavaScript files from the 'src' directory and outputs them to the 'dist' directory.
const gulp = require('gulp');
const uglify = require('gulp-uglify');
gulp.task('minify-js', function() {
return gulp.src('src/*.js')
.pipe(uglify())
.pipe(gulp.dest('dist'));
});
Watching Files
Defines a Gulp task named 'watch' that monitors JavaScript files in the 'src' directory and runs the 'minify-js' task whenever a file changes.
const gulp = require('gulp');
gulp.task('watch', function() {
gulp.watch('src/*.js', gulp.series('minify-js'));
});
@types/grunt provides TypeScript type definitions for the Grunt task runner. Grunt is another popular task runner similar to Gulp, but it uses a configuration-based approach rather than a code-based approach.
@types/webpack provides TypeScript type definitions for Webpack, a module bundler. While Webpack is primarily used for bundling JavaScript modules, it can also perform many of the same tasks as Gulp, such as file transformations and optimizations.
npm install --save @types/gulp
This package contains type definitions for gulp (http://gulpjs.com).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp.
These definitions were written by Drew Noakes, Juan Arroyave, Giedrius Grabauskas, and David Gabison.
FAQs
TypeScript definitions for gulp
The npm package @types/gulp receives a total of 134,440 weekly downloads. As such, @types/gulp popularity was classified as popular.
We found that @types/gulp 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.