Socket
Socket
Sign inDemoInstall

gulp-decomment

Package Overview
Dependencies
18
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-decomment

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


Version published
Weekly downloads
1.5K
increased by15.81%
Maintainers
1
Install size
656 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 17 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc