2.4.3 • Published 8 years ago

gulp-hjson v2.4.3

Weekly downloads
59
License
MIT
Repository
github
Last release
8 years ago

gulp-hjson

Build Status NPM version

Hjson plugin for gulp, converts from and to JSON.

Hjson, the Human JSON. A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.

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('hjson', function() {
  gulp.src(['*.hjson'])
    .pipe(Hjson({ to: 'json' }))
    .pipe(gulp.dest('output'));
});

options

{ to: 'json' }

Convert to JSON.

{ to: 'json', jsonSpace: ' ' }

Convert to formatted JSON.

{ to: 'hjson' }

Convert to Hjson.

2.4.3

8 years ago

2.0.3

9 years ago

1.8.1

9 years ago

1.8.0

9 years ago

1.7.4

10 years ago

1.7.3

10 years ago

1.6.1

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.1.0

10 years ago

1.0.0

11 years ago

0.1.0

11 years ago