gulp-native2ascii

0.0.3 • Public • Published

gulp-native2ascii

About

Converts a file with characters in any supported character encoding to one with ASCII and/or Unicode escapes, or visa 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.

/gulp-native2ascii/

    Package Sidebar

    Install

    npm i gulp-native2ascii

    Weekly Downloads

    2

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • adamme