Skip to content

hjson/gulp-hjson

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Hjson plugin for Gulp.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published