🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More
Socket
Sign inDemoInstall
Socket

remove-html-comments

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-html-comments

Remove comments in html

1.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

NPM version Build Status Dependency Status

Remove comments in html

Install

$ npm install --save remove-html-comments

Usage

var removeHtmlComments = require('remove-html-comments');

removeHtmlComments('<!DOCTYPE html><!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
/*=> {
  data: '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>',
  comments: [ '<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->' ]
} */
$ npm install --global remove-html-comments
$ remove-html-comments --help

  Usage
    remove-html-comments <input-path>
    remove-html-comments <input-path> <output-path>
    cat <input-path> | remove-html-comments

  Example
    remove-html-comments index.html
    remove-html-comments index.html no-comments.html
    cat index.html | remove-html-comments
    cat index.html | remove-html-comments > no-comments.html

  Options
    -v, --verbose    Verbose output

License

MIT © Steve Mao

Keywords

remove-html-comments

FAQs

Package last updated on 15 Jun 2015

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