nyc
Use nyc 18.x for its CommonJS API, coverage-file lifecycle, directory resolution, and CLI/runner boundaries. Covers the Node runtime change from nyc 17.x and avoids standalone examples that depend on runner or subprocess internals.
A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.
| Line | For | Verified |
|---|---|---|
| 18.x | nyc@18.0.0 |
2026-09-08, 3 examples |