# wrap-comment

> Safely wrap some text in a JavaScript comment, escaping close `*/` sequences.

Latest version **1.0.1** (published 2017-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install wrap-comment
pnpm add wrap-comment
yarn add wrap-comment
bun add wrap-comment
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-15 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Renée Kooi |
| Maintainers | goto-bus-stop |

## Links

- npm: https://www.npmjs.com/package/wrap-comment
- Repository: https://github.com/goto-bus-stop/wrap-comment
- Homepage: https://github.com/goto-bus-stop/wrap-comment#readme
- Issues: https://github.com/goto-bus-stop/wrap-comment/issues
- npm.io page: https://npm.io/package/wrap-comment

## Recent versions

- 1.0.1 (latest) — 2017-10-15
- 1.0.0 — 2017-09-07

## README

# wrap-comment

Safely wrap some text in a JavaScript comment, escaping close `*/` sequences.

Useful if you're commenting text in some source code.

## Install

```bash
npm install wrap-comment
```

## Usage

```js
var wrapComment = require('wrap-comment')
wrapComment('some text')
// → '/* some text */'
wrapComment('tricky /* text */')
// → '/* tricky /* text *\/ */'
```

## License

[MIT](./LICENSE)

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