
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Better file renaming for Gulp.
Install with npm:
npm i gulp-rte --save-dev
Substitute prop-strings like :basename, :ext, :dirname or any random string that has a match on the context object.
The generated dest path will be appended to whatever is defined in gulp.dest().
For example:
gulp.src('*.js')
.pipe(rte(':basename:ext'))
.pipe(gulp.dest('blog'));
//=> blog/a.js, blog/b.js, blog/c.js...
File paths are parsed to create the default context object, so any of the following will work:
Given the filepath a/b/c/d.js:
:dirname returns a/b/c:basename returns d.js:ext|:extname returns .jsNote that, continuing with this example, the path must actually have an extension for :ext to return an extension. If an extension doesn't actually exist on the filepath then ext itself will be returned. An easy way around this is to define ext as a custom property.
Pass custom properties as a second parameter (continuing with a/b/c/d.js):
rte(':alpha/:gamma:ext', {alpha: 'one', gamma: 'three'})
//=> one/three.js
rte(':alpha/:basename/:gamma:ext', {alpha: 'one', gamma: 'three'})
//=> one/d/three.js
This is just a basic example of what rte can do:
var gulp = require('gulp');
var rte = require('gulp-rte');
// given you have:
// ['a/b/c/foo.js', 'a/b/c/bar.js', 'a/b/c/baz.js']
gulp.task('default', function() {
return gulp.src('a/b/c/*.js')
.pipe(rte(':basename.min:ext'))
.pipe(gulp.dest('blog'));
});
//=> blog/foo.min.js
//=> blog/bar.min.js
//=> blog/baz.min.js
Add a radomized string to any point in a file path:
var context = {
random: Math.random().toString(36).substr(2, 5);
};
gulp.task('default', function() {
return gulp.src('a/b/c/*.js')
.pipe(rte(':basename-:random.js', context))
.pipe(gulp.dest('blog'));
});
//=> blog/foo-qi2os.js
//=> blog/bar-s5s7p.js
//=> blog/baz-bu96e.js
Any pattern can be used. For inspiration or examples, see:
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on June 28, 2014.
FAQs
Better dest handling for Gulp.
The npm package gulp-rte receives a total of 3 weekly downloads. As such, gulp-rte popularity was classified as not popular.
We found that gulp-rte 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
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.