Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/gulp-strip-json-comments
Strip comments from JSON. Lets you use comments in your JSON files!
https://github.com/sindresorhus/gulp-strip-json-comments
gulp-plugin javascript json nodejs strip-comments
Last synced: 3 months ago
JSON representation
Strip comments from JSON. Lets you use comments in your JSON files!
- Host: GitHub
- URL: https://github.com/sindresorhus/gulp-strip-json-comments
- Owner: sindresorhus
- License: mit
- Created: 2014-01-02T19:23:24.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T19:08:06.000Z (about 1 year ago)
- Last Synced: 2024-04-14T06:09:32.883Z (9 months ago)
- Topics: gulp-plugin, javascript, json, nodejs, strip-comments
- Language: JavaScript
- Size: 17.6 KB
- Stars: 26
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# gulp-strip-json-comments
> Strip comments from JSON with [strip-json-comments](https://github.com/sindresorhus/strip-json-comments)
> Lets you use comments in your JSON files!## Install
```sh
npm install --save-dev gulp-strip-json-comments
```## Usage
```js
import gulp from 'gulp';
import stripJsonComments from 'gulp-strip-json-comments';export default () => (
gulp.src('src/config.json')
.pipe(stripJsonComments())
.pipe(gulp.dest('dist'))
);
```## API
### stripJsonComments(options?)
#### options
Type: `object`
See the [`strip-json-comments` options](https://github.com/sindresorhus/strip-json-comments#options).