# gulp-decomment

> Removes comments from JSON, JavaScript, CSS, HTML, etc.

Latest version **0.2.2** (published 2021-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-decomment
pnpm add gulp-decomment
yarn add gulp-decomment
bun add gulp-decomment
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2021-03-17 |
| First published | 2015-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Vitaly Tomilov |
| Maintainers | vitaly.tomilov |
| Keywords | remove comments, JavaScript, JSON, CSS, HTML, Text |

## Links

- npm: https://www.npmjs.com/package/gulp-decomment
- Repository: https://github.com/vitaly-t/gulp-decomment
- Issues: https://github.com/vitaly-t/gulp-decomment/issues
- npm.io page: https://npm.io/package/gulp-decomment

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) 4.0.2
- [decomment](https://npm.io/package/decomment.md) 0.9.4
- [plugin-error](https://npm.io/package/plugin-error.md) 1.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.2 (latest) — 2021-03-17
- 0.2.1 — 2021-03-17
- 0.2.0 — 2017-09-17
- 0.1.3 — 2016-03-06
- 0.1.2 — 2016-01-16
- 0.1.1 — 2016-01-07
- 0.1.0 — 2016-01-02
- 0.0.1 — 2015-12-27

## README

gulp-decomment
==============

Uses [decomment] to remove comments from JSON, JavaScript, CSS, HTML, etc.

[![Build Status](https://travis-ci.org/vitaly-t/gulp-decomment.svg?branch=master)](https://travis-ci.org/vitaly-t/gulp-decomment)
[![Coverage Status](https://coveralls.io/repos/vitaly-t/gulp-decomment/badge.svg?branch=master)](https://coveralls.io/r/vitaly-t/gulp-decomment?branch=master)

## Installing

```
$ npm i gulp-decomment
```

## Testing

```
$ npm test
```

Testing with coverage:
```
$ npm run coverage
```

## Usage

```js
const gulp = require('gulp');
const decomment = require('gulp-decomment');

gulp.task('default', () => 
    gulp.src('input.js')
    .pipe(decomment({trim: true}))
    .pipe(gulp.dest('dest'))
);
```

## API

Available methods, according to [decomment API](https://github.com/vitaly-t/decomment#api):

##### - [decomment([options])](https://github.com/vitaly-t/decomment#decommentcode-options--string)
##### - [decomment.text([options])](https://github.com/vitaly-t/decomment#decommenttexttext-options--string)
##### - [decomment.html([options])](https://github.com/vitaly-t/decomment#decommenthtmlhtml-options--string)

## License

Copyright © 2021 [Vitaly Tomilov](https://github.com/vitaly-t);
Released under the MIT license.

[decomment]:https://github.com/vitaly-t/decomment

---
_Source: https://npm.io/package/gulp-decomment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
