Skip to content

Instantly share code, notes, and snippets.

@r3nya
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r3nya/0e8c6213776d9d7fa148 to your computer and use it in GitHub Desktop.
Save r3nya/0e8c6213776d9d7fa148 to your computer and use it in GitHub Desktop.
Translite
var gulp = require('gulp'),
path = require('path'),
rename = require('gulp-rename'),
translit = require('translitit-cyrillic-russian-to-latin');
gulp.task('files', function () {
gulp.src('./файл.txt')
.pipe(rename(function (path) {
path.basename = translit(path.basename);
}))
.pipe(gulp.dest('./dest/'));
});
gulp.task('default', ['files']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment