gulp-json5-to-json

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i gulp-json5-to-json

Weekly Downloads

28

Version

0.2.1

License

MIT

Last publish

Collaborators

  • miusuncle
  • qcloud