# html-comment-regex

> Regular expression for matching HTML comments

Latest version **1.1.2** (published 2018-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-comment-regex
pnpm add html-comment-regex
yarn add html-comment-regex
bun add html-comment-regex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2018-10-09 |
| First published | 2015-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Steve Mao |
| Maintainers | stevemao |
| Keywords | html-comment-regex, text, string, regex, regexp, re, match, test, find, pattern, comment, comments, html, HTML, HyperText Markup Language |

## Links

- npm: https://www.npmjs.com/package/html-comment-regex
- Repository: https://github.com/stevemao/html-comment-regex
- Issues: https://github.com/stevemao/html-comment-regex/issues
- npm.io page: https://npm.io/package/html-comment-regex

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2018-10-09
- 1.1.1 — 2016-07-12
- 1.1.0 — 2015-05-22
- 1.0.0 — 2015-05-21
- 0.0.0 — 2015-05-21

## README

#  [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

> Regular expression for matching HTML comments


## Install

```sh
$ npm install --save html-comment-regex
```


## Usage

```js
var htmlCommentRegex = require('html-comment-regex');

htmlCommentRegex.test('<!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>');
//=> true

htmlCommentRegex.test('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> false
```


## License

MIT © [Steve Mao](https://github.com/stevemao)


[npm-image]: https://badge.fury.io/js/html-comment-regex.svg
[npm-url]: https://npmjs.org/package/html-comment-regex
[travis-image]: https://travis-ci.org/stevemao/html-comment-regex.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/html-comment-regex

---
_Source: https://npm.io/package/html-comment-regex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
