
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Gulp plugin for easily defining destination paths.
npm i gulp-dest --save
var dest = require('gulp-dest');
var gulp = require('gulp');
gulp.task('default', function() {
gulp.src(['a.hbs', 'b.hbs', 'c.hbs'])
.pipe(dest('dist', {ext: '.html'}))
.pipe(gulp.dest('./'))
});
//=> ['dist/a.html', 'dist/b.html', 'dist/c.html']
dest(directory, options);
// example
dest('dist', {ext: '.html'});
{String}: Optionally define a path to be append to the path (file.base) specified in gulp.dest(){Object}: Pass file path properties to use. Supported properties are ext or extname, dirname and basename (although I'm not sure why you would use it)Dynamically replace variables with actual path values:
Example
// Given: ['a.coffee', 'b.coffee', 'c.coffee']
dest(':basename.js');
//=> ['a.js', 'b.js', 'c.js']
Any properties defined on the options can be used as path variables:
Example
var dest = require('gulp-dest');
var gulp = require('gulp');
gulp.task('default', function() {
gulp.src(['a.txt', 'b.txt', 'c.txt'])
// basename is automatically generated from the file,
// unless overridden in the options
.pipe(dest('dist/:basename.:a:b:c', {a: 'A', b: 'B', c: 'C'}))
.pipe(gulp.dest('./'))
});
//=> ['dist/a.ABC', 'dist/b.ABC', 'dist/c.ABC']
Install dev dependencies:
node i -d && mocha
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 30, 2014.
FAQs
Gulp plugin for easily defining destination paths using path variables.
The npm package gulp-dest receives a total of 1,276 weekly downloads. As such, gulp-dest popularity was classified as popular.
We found that gulp-dest 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.