https://github.com/miusuncle/gulp-json5-to-json
A gulp plugin to convert JSON5 to strict JSON.
https://github.com/miusuncle/gulp-json5-to-json
gulp gulp-plugin json json5
Last synced: about 1 month ago
JSON representation
A gulp plugin to convert JSON5 to strict JSON.
- Host: GitHub
- URL: https://github.com/miusuncle/gulp-json5-to-json
- Owner: miusuncle
- License: mit
- Created: 2017-04-08T02:46:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T03:34:01.000Z (about 9 years ago)
- Last Synced: 2024-04-25T05:02:39.771Z (about 2 years ago)
- Topics: gulp, gulp-plugin, json, json5
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-json5-to-json
[![NPM Version][npm-image]][npm-url]
[![Minimum Node.js Version][nodejs-image]][nodejs-url]
[![License][license-image]][license-url]
## Installation
```
$ npm install --save-dev gulp-json5-to-json
```
## Usage
```js
const gulp = require('gulp');
const json5 = require('gulp-json5-to-json');
gulp.task('default', () => {
return gulp.src('src/**/*.json5')
.pipe(json5({ beautify: true }))
.pipe(gulp.dest('./build'));
});
```
### Options
- `beautify` - Causes the resulting file to be pretty-printed.
## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/gulp-json5-to-json.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gulp-json5-to-json
[nodejs-image]: https://img.shields.io/badge/Node.js-%3E%3D%206.0-669B64.svg?style=flat-square
[nodejs-url]: https://nodejs.org/
[license-image]: https://img.shields.io/github/license/miusuncle/gulp-json5-to-json.svg?style=flat-square
[license-url]: LICENSE