
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
gulp-extname
Advanced tools
gulp plugin to dynamically rewrite dest extensions based on src extensions.
gulp plugin to dynamically rewrite dest extensions based on src extensions.
(TOC generated by verb using markdown-toc)
Install with npm:
$ npm i gulp-extname --save
var gulp = require('gulp');
var extname = require('gulp-extname');
gulp.task('default', function() {
gulp.src('styles.less')
.pipe(extname())
.pipe(gulp.dest('dist/css'));
//=> dist/css/styles.css
});
Explicitly pass an extension to use. Any of these will work:
.pipe(extname('.foo'))
// or
.pipe(extname('foo'))
// or
.pipe(extname({ext: 'foo'}))
The following extensions are mapped automatically:
// html
.md //=> .html
.hbs //=> .html
.swig //=> .html
.tmpl //=> .html
.html //=> .html
.htm //=> .html
// css
.less //=> .css
.styl //=> .css
.sass //=> .css
.scss //=> .css
.css //=> .css
// js
.coffee//=> .js
.js //=> .js
Add extension mappings, or use rewrite-ext for non-gulp projects.
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 06, 2016.
FAQs
gulp plugin to dynamically rewrite dest extensions based on src extensions.
The npm package gulp-extname receives a total of 3,567 weekly downloads. As such, gulp-extname popularity was classified as popular.
We found that gulp-extname 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.