{"id":25887,"library":"lint-wiki-dumps","title":"lint-wiki-dumps","description":"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.","status":"active","version":"0.9.1","language":"javascript","source_language":"en","source_url":"https://github.com/bhsd-harry/lint-wiki-dumps","tags":["javascript","lint","wikipedia"],"install":[{"cmd":"npm install lint-wiki-dumps","lang":"bash","label":"npm"},{"cmd":"yarn add lint-wiki-dumps","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-wiki-dumps","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine for Wikitext articles","package":"wikilint","optional":false},{"reason":"Optional dependency for linting inline CSS in Wikitext","package":"vscode-css-languageservice","optional":true}],"imports":[{"note":"The package exposes a CLI binary; no programmatic API is exported. Use npx or install globally.","wrong":"npm i -g lint-wiki-dumps && lint-wiki-dumps","symbol":"main binary","correct":"npx lint-wiki-dumps <language> <downloadPath> [htmlPath] [jsonPath]"},{"note":"The shell script is intended to be run with bash, not sh.","wrong":"sh scan.sh ...","symbol":"scan.sh","correct":"bash scan.sh <language> <downloadPath> [htmlPath] [jsonPath]"}],"quickstart":{"code":"# Install the tool (requires curl)\nnpm install lint-wiki-dumps\n\n# Run linting on Chinese Wikipedia (zh) with curl\n# The tool will download the latest dump and lint articles\nnpx lint-wiki-dumps zh ~/Downloads/wikipedia-dumps ~/reports/zh-report.html ~/reports/zh-report.json\n\n# Or use bash script directly\nbash node_modules/lint-wiki-dumps/scan.sh zh ~/Downloads/wikipedia-dumps\n\n# Optionally install CSS linter\nnpm install vscode-css-languageservice\n","lang":"bash","description":"Installs the package and runs a lint on Chinese Wikipedia, generating HTML and JSON reports."},"warnings":[{"fix":"Install curl (e.g., apt install curl or brew install curl).","message":"Requires curl installed on the system. Without curl, the tool will fail to download dumps.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use Node.js 20.19.2+ or 22.13.0+.","message":"Node.js engine requirement: ^20.19.2 || ^22.13.0. Older versions like 18 are not supported.","severity":"deprecated","affected_versions":">=0.9.0"},{"fix":"Check available disk space before running.","message":"The tool downloads large Wikipedia dumps (hundreds of MB to GB). Ensure sufficient disk space and network bandwidth.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Run npm install vscode-css-languageservice alongside lint-wiki-dumps.","message":"The optional CSS linter (vscode-css-languageservice) is not automatically installed; must be added manually.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install curl via your package manager (e.g., sudo apt install curl).","cause":"Missing system dependency curl.","error":"Error: curl is not installed. Please install curl to use this tool."},{"fix":"Use a valid Wikipedia language code (e.g., en, zh, de). Ensure internet connectivity.","cause":"Invalid language code or network issue.","error":"Error: Failed to download dump for language 'xx'. Check internet connection and language code."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}