bravomartin / gulp-hjson

Hjson implementation for Gulp.

Home Page:http://hjson.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-hjson

Build Status NPM version

Hjson plugin for gulp, converts from and to JSON.

Hjson, the Human JSON. A configuration file format that caters to humans and helps reduce the errors they make.

It supports #, // and /**/ style comments as well as avoiding trailing/missing comma and other mistakes. For details and syntax see hjson.org.

Usage

First, install gulp-hjson as a development dependency:

npm install --save-dev gulp-hjson

Then, add it to your gulpfile.js:

var Hjson = require('gulp-hjson');

gulp.task('json', function() {
  gulp.src(['*.json'])
    .pipe(Hjson({ to: 'hjson' }))
    .pipe(gulp.dest('output'));
});

options

{ to: 'json' }

Convert to JSON.

{ to: 'hjson' }

Convert to Hjson.

About

Hjson implementation for Gulp.

http://hjson.org

License:MIT License


Languages

Language:JavaScript 100.0%