node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



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


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() {
    .pipe(Hjson({ to: 'json' }))


{ to: 'json' }

Convert to JSON.

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

Convert to formatted JSON.

{ to: 'hjson' }

Convert to Hjson.