You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

gulp-decomment

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

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
729
decreased by-24.61%
Maintainers
1
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

Package last updated on 17 Mar 2021

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc