gulp-decomment

0.2.2 • Public • Published

gulp-decomment

Uses decomment to remove comments from JSON, JavaScript, CSS, HTML, etc.

Build Status Coverage Status

Installing

$ npm i gulp-decomment

Testing

$ npm test

Testing with coverage:

$ npm run coverage

Usage

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:

- decomment([options])
- decomment.text([options])
- decomment.html([options])

License

Copyright © 2021 Vitaly Tomilov; Released under the MIT license.

Package Sidebar

Install

npm i gulp-decomment

Weekly Downloads

1,006

Version

0.2.2

License

MIT

Unpacked Size

3.52 kB

Total Files

3

Last publish

Collaborators

  • vitaly.tomilov