Skip to content

we11adam/gulp-native2ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Converts a file with characters in any supported character encoding to one with ASCII and/or Unicode escapes, or vise versa.

Usage

var gulp = require('gulp');
var n2a = require('gulp-native2ascii');

gulp.task('n2a', function() {
  gulp.src('./src/foo.js')
    .pipe(n2a({reverse: false}))
    .pipe(gulp.dest('./build'))
});

Options

reverse: Can be true or false. When it's set to true, the plugin performs the reverse operation: Convert a file encoded in ISO-8859-1 with Unicode escapes to another one.

About

Converts a file with characters in any supported character encoding to one with ASCII and/or Unicode escapes, or visa versa.

Resources

Stars

Watchers

Forks

Packages

No packages published