Registry / data / lint-wiki-dumps

lint-wiki-dumps

JSON →
library0.9.1jsnpmunverified

lint-wiki-dumps is a Node.js CLI tool (v0.9.1) for linting Wikitext articles from Wikipedia dumps by integrating WikiLint and optionally vscode-css-languageservice. It automates downloading the latest dump, parsing articles, and generating lint reports in both JSON and HTML formats. Unlike standalone WikiLint, this package handles dump retrieval and batch processing. The tool requires curl and Node.js ^20.19.2 || ^22.13.0. It is maintained by bhsd-harry.

npm install lint-wiki-dumps
INSTALL
IMPORT
SIG · LINT-WIKI-DUMPS
L
lint-wiki-dumps
datajavascriptv0.9.1
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.

main binary
npx lint-wiki-dumps <language> <downloadPath> [htmlPath] [jsonPath]
npm i -g lint-wiki-dumps && lint-wiki-dumps
The package exposes a CLI binary; no programmatic API is exported. Use npx or install globally.
scan.sh
bash scan.sh <language> <downloadPath> [htmlPath] [jsonPath]
sh scan.sh ...
The shell script is intended to be run with bash, not sh.

Installs the package and runs a lint on Chinese Wikipedia, generating HTML and JSON reports.

# Install the tool (requires curl) npm install lint-wiki-dumps # Run linting on Chinese Wikipedia (zh) with curl # The tool will download the latest dump and lint articles npx lint-wiki-dumps zh ~/Downloads/wikipedia-dumps ~/reports/zh-report.html ~/reports/zh-report.json # Or use bash script directly bash node_modules/lint-wiki-dumps/scan.sh zh ~/Downloads/wikipedia-dumps # Optionally install CSS linter npm install vscode-css-languageservice
lint-wiki-dumps --version
Debug
Known issues
gotchaRequires curl installed on the system. Without curl, the tool will fail to download dumps.
fix
Install curl (e.g., apt install curl or brew install curl).
affects: >=0.0.0
deprecatedNode.js engine requirement: ^20.19.2 || ^22.13.0. Older versions like 18 are not supported.
fix
Use Node.js 20.19.2+ or 22.13.0+.
affects: >=0.9.0
gotchaThe tool downloads large Wikipedia dumps (hundreds of MB to GB). Ensure sufficient disk space and network bandwidth.
fix
Check available disk space before running.
affects: >=0.0.0
gotchaThe optional CSS linter (vscode-css-languageservice) is not automatically installed; must be added manually.
fix
Run npm install vscode-css-languageservice alongside lint-wiki-dumps.
affects: >=0.0.0
Errors
Common errors & fixes
Error: curl is not installed. Please install curl to use this tool.
Missing system dependency curl.
fix
Install curl via your package manager (e.g., sudo apt install curl).
Error: Failed to download dump for language 'xx'. Check internet connection and language code.
Invalid language code or network issue.
fix
Use a valid Wikipedia language code (e.g., en, zh, de). Ensure internet connectivity.
Upgrade
Version history
0.9.1latest on npm
Audit
Dependencies
wikilintrequiredCore linting engine for Wikitext articles
vscode-css-languageserviceoptionalOptional dependency for linting inline CSS in Wikitext
Agent activity
2 hits · last 30 days
node
2
Resources
lint-wiki-dumps — npm install lint-wiki-dumps · libregistry