You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

gulp-revert-path

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-revert-path

Revert the previous `file.path` change

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2.4K
-17.37%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-revert-path Build Status

Revert the previous file.path change

Many plugins change the file.path somehow. Most commenly the file extension. For example gulp-babel changes .jsx extensions to .js since it compiles JSX. Sometimes that's undesirable though. This plugin makes it easy to revert the path change.

Install

$ npm install --save-dev gulp-revert-path

Usage

var gulp = require('gulp');
var babel = require('gulp-babel');
var revertPath = require('gulp-revert-path');

gulp.task('default', function () {
	return gulp.src('src/app.jsx')
		.pipe(babel())       // file.path => src/app.js
		.pipe(revertPath())  // file.path => src/app.jsx
		.pipe(gulp.dest('dist'));
});

License

MIT © Sindre Sorhus

Keywords

gulpplugin

FAQs

Package last updated on 16 May 2015

Did you know?

Socket

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.

Install

Related posts