Skip to content

miusuncle/gulp-json5-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-json5-to-json

NPM Version Minimum Node.js Version License

Installation

$ npm install --save-dev gulp-json5-to-json

Usage

const gulp = require('gulp');
const json5 = require('gulp-json5-to-json');

gulp.task('default', () => {
  return gulp.src('src/**/*.json5')
    .pipe(json5({ beautify: true }))
    .pipe(gulp.dest('./build'));
});

Options

  • beautify - Causes the resulting file to be pretty-printed.

License

MIT

About

A gulp plugin to convert JSON5 to strict JSON.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published