# remove-html-comments
**Repository Path**: mirrors_stevemao/remove-html-comments
## Basic Information
- **Project Name**: remove-html-comments
- **Description**: Remove comments in html
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-26
- **Last Updated**: 2025-09-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
> Remove comments in html
## Install
```sh
$ npm install --save remove-html-comments
```
## Usage
```js
var removeHtmlComments = require('remove-html-comments');
removeHtmlComments('
Document');
/*=> {
data: 'Document',
comments: [ '' ]
} */
```
```sh
$ npm install --global remove-html-comments
$ remove-html-comments --help
Usage
remove-html-comments
remove-html-comments
cat | 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](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/remove-html-comments.svg
[npm-url]: https://npmjs.org/package/remove-html-comments
[travis-image]: https://travis-ci.org/stevemao/remove-html-comments.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/remove-html-comments
[daviddm-image]: https://david-dm.org/stevemao/remove-html-comments.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/stevemao/remove-html-comments