# comment-to-assert

> convert line comment to assert.

Latest version **6.0.0** (published 2025-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install comment-to-assert
pnpm add comment-to-assert
yarn add comment-to-assert
bun add comment-to-assert
```

Provides the command `comment-to-assert`.

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2025-07-08 |
| First published | 2015-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 41.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | azu |
| Maintainers | azu |
| Keywords | ast, doctest, testing |

## Links

- npm: https://www.npmjs.com/package/comment-to-assert
- Repository: https://github.com/azu/comment-to-assert
- Issues: https://github.com/azu/comment-to-assert/issues
- npm.io page: https://npm.io/package/comment-to-assert

## Dependencies (7)

- [@babel/core](https://npm.io/package/@babel/core.md) ^7.28.0
- [@babel/types](https://npm.io/package/@babel/types.md) ^7.28.0
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.28.0
- [concat-stream](https://npm.io/package/concat-stream.md) ^2.0.0
- [@babel/template](https://npm.io/package/@babel/template.md) ^7.27.2
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) ^7.28.0
- [structured-source](https://npm.io/package/structured-source.md) ^4.0.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2025-07-08
- 6.0.0-beta.1 (canary) — 2023-07-15
- 5.3.5 — 2025-07-07
- 5.3.4 — 2025-04-19
- 5.3.3 — 2023-07-15
- 5.3.1 — 2022-01-05
- 5.3.0 — 2021-05-07
- 5.2.0 — 2020-06-20
- 5.0.1 — 2019-09-01
- 5.0.0 — 2019-09-01
- 4.0.0 — 2019-09-01
- 3.3.0 — 2019-08-25
- 3.0.0 — 2019-08-25
- 2.1.2 — 2019-08-24
- 2.1.1 — 2019-08-24
- … 13 more at https://npm.io/package/comment-to-assert/versions

## README

# This repository has moved to:
## <https://github.com/azu/power-doctest/tree/master/packages/comment-to-assert>

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