New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wikilint

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikilint

A Node.js linter for MediaWiki markup

latest
Source
npmnpm
Version
2.38.0
Version published
Weekly downloads
444
326.92%
Maintainers
1
Weekly downloads
 
Created
Source
WikiParser-Node logo

WikiLint

npm version CodeQL CI Codacy Badge Istanbul coverage

This is a minimal version of WikiParser-Node. The Wikitext LSP and the WikiParser Language Server VS Code extension is written based on this package.

You can also directly lint Wikitext articles in the command line using this package:

npx wikilint --config zhwiki --include --lang zh-hans *.wiki

CLI Options

OptionArgumentDescriptionDefault
-c, --config<path or preset config>Choose parser's configurationdefault
--cacheEnable cachingfalse
--cache-file<path>Specify cache file and enable caching.wikilintcache
--ext<extension>Specify file extension
Can be used multiple times
all files
--fixAutomatically fix problemsfalse
-h, --helpPrint available options
-i, --includeParse for inclusionfalse
--ignore<pattern>Ignore files matching the glob pattern
Can be used multiple times
-l, --lang<path or preset language>Choose i18n languageEnglish
--lc, --lint-config<path>Specify lint config file.wikilintrc.json
.wikilintrc.js
.wikilintrc.cjs
.wikilintrc.mjs
-q, --quietReport errors onlyerrors and warnings
-r, --recursiveRecursively lint filesfalse
-s, --strictExit when there is an error or warning
Override -q or --quiet
Exit 1 only where there is an error
-v, --versionPrint package version

Configuration

For MediaWiki sites with the CodeMirror extension installed, such as different language editions of Wikipedia and other Wikimedia Foundation-hosted sites, you can use the following command to obtain the parser configuration:

npx getParserConfig <site> <script path> [user] [force]
# For example:
npx getParserConfig jawiki https://ja.wikipedia.org/w user@example.net

The generated configuration file will be saved in the config directory. You can then use the site name as the --config option.

# For example:
npx wikilint --config jawiki *.wiki

Keywords

mediawiki

FAQs

Package last updated on 02 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts