https://github.com/hjson/gulp-hjson
Hjson plugin for Gulp.
https://github.com/hjson/gulp-hjson
gulp hjson
Last synced: about 1 year ago
JSON representation
Hjson plugin for Gulp.
- Host: GitHub
- URL: https://github.com/hjson/gulp-hjson
- Owner: hjson
- License: mit
- Created: 2014-06-28T08:38:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T19:37:38.000Z (about 9 years ago)
- Last Synced: 2025-04-03T11:42:13.537Z (about 1 year ago)
- Topics: gulp, hjson
- Language: JavaScript
- Homepage: http://hjson.org
- Size: 8.79 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-hjson
[](http://travis-ci.org/hjson/gulp-hjson)
[](http://www.npmjs.com/package/gulp-hjson)
Hjson plugin for gulp, converts from and to JSON.
[Hjson](http://hjson.org), the Human JSON. A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.
For details and syntax see [hjson.org](http://hjson.org).
## Usage
First, install `gulp-hjson` as a development dependency:
```shell
npm install --save-dev gulp-hjson
```
Then, add it to your `gulpfile.js`:
```javascript
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.