# uncomment-it

> Uncomment html, js or css

Latest version **1.0.1** (published 2015-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install uncomment-it
pnpm add uncomment-it
yarn add uncomment-it
bun add uncomment-it
```

Provides the command `uncomment-it`.

## 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.0.1 |
| Published | 2015-06-15 |
| First published | 2015-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Steve Mao |
| Maintainers | stevemao |
| Keywords | uncomment-it, uncomment, css, html, js, comment, comments, block |

## Links

- npm: https://www.npmjs.com/package/uncomment-it
- Repository: https://github.com/stevemao/uncomment-it
- Issues: https://github.com/stevemao/uncomment-it/issues
- npm.io page: https://npm.io/package/uncomment-it

## Dependencies (5)

- [meow](https://npm.io/package/meow.md) ^3.1.0
- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [comment-regex](https://npm.io/package/comment-regex.md) ^1.0.0
- [concat-stream](https://npm.io/package/concat-stream.md) ^1.4.8
- [html-comment-regex](https://npm.io/package/html-comment-regex.md) ^1.1.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-06-15
- 1.0.0 — 2015-05-22
- 0.0.0 — 2015-05-22

## README

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

> Uncomment html, js or css

**NOTE**: This is using regex and therefore is pretty fragile. Created for simplicity and perf reasons. Read more at https://github.com/sindresorhus/comment-regex/issues/1.

**HINT**: In order to make it work properly adjust some space around the comments might help.

## Install

```sh
$ npm install --save uncomment-it
```


## Usage

```js
var uncommentIt = require('uncomment-it');

uncommentIt('<!--<div>a div</div>-->', 'html');
//=> <div>a div</div>

uncommentIt('// var test = \'test\'', 'js');
//=> var test = 'test'

uncommentIt('/*body {background: blue}*/', 'css');
//=> body {background: blue}
```

```sh
$ npm install --global uncomment-it
$ uncomment-it --help

  Usage
    uncomment-it <input-path> <type>
    uncomment-it <input-path> <type> <output-path>
    cat <input-path> | uncomment-it <type>

  Example
    uncomment-it index.html html
    uncomment-it index.js js uncommented.html
    cat index.css | uncomment-its css
    cat index.html | uncomment-it html > uncommented.html

  Options
    -v, --verbose    Verbose output
```


## License

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


[npm-image]: https://badge.fury.io/js/uncomment-it.svg
[npm-url]: https://npmjs.org/package/uncomment-it
[travis-image]: https://travis-ci.org/stevemao/uncomment-it.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/uncomment-it
[daviddm-image]: https://david-dm.org/stevemao/uncomment-it.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/stevemao/uncomment-it

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