Registry / testing / textlint-formatter-lcov

textlint-formatter-lcov

JSON →
library1.0.2jsnpmunverified

A textlint output formatter that produces LCOV coverage format for text linting results, enabling integration with code coverage services like Codecov. Current stable version is 1.0.2, with low maintenance cadence. It converts textlint's linting output into LCOV format (used by code coverage tools), allowing text coverage visualization. Simpler than textlint-formatter-codecov, which provides JSON output with messages.

npm install textlint-formatter-lcov
INSTALL
IMPORT
SIG · TEXTLINT-FORMATTER
T
textlint-formatter-lcov
testingjavascriptv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

textlint-formatter-lcov
const textlint = require('textlint'); ... // formatter used via CLI
This package is a CLI formatter, not a programmatic module. It is used by specifying 'lcov' format in textlint CLI command (e.g., textlint -f lcov). No direct require() or import is used.

Installs dependencies and runs textlint with lcov formatter, output to stdout or piped to codecov.

npm install -D textlint textlint-formatter-lcov # Run textlint with lcov formatter textlint -f lcov README.md # Pipe to codecov textlint -f lcov example/README.md | npx codecov
Debug
Known issues
gotchaThe formatter only works with textlint, not as a standalone package.
fix
Ensure textlint is installed as a peer dependency.
affects: >=0.0.1
gotchaThe formatter expects specific textlint output format; changes in textlint may break compatibility.
fix
Keep textlint version compatible with this formatter.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'textlint-formatter-lcov'
Package not installed or not correctly required.
fix
Run `npm install -D textlint-formatter-lcov` and use via CLI, not programmatic require.
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
textlintrequiredPeer dependency required to run the formatter.
Agent activity
8 hits · last 30 days
node
8
Resources
textlint-formatter-lcov — npm install textlint-formatter-lcov · libregistry