npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mega-linter-runner

v9.4.0

Published

Local runner for MegaLinter

Readme

MegaLinter Runner

Version Downloads/week Downloads/total GitHub stars

Docker Pulls MegaLinter codecov Secured with Trivy GitHub Sponsors PRs Welcome Tweet

MegaLinter analyzes 37 languages, 15 formats, 16 tooling formats , copy-pastes and spell in your repository sources, generate reports in several formats, and can even apply formatting and auto-fixes with auto-generated commit or PR, to ensure all your projects are clean, whatever IDE/toolbox are used by their developers !

See MegaLinter Online Documentation Web Site

This package allows to run MegaLinter locally before running it in your CD/CI workflow, or simply to locally apply reformatting and fixes without having to install up to date linters for your files

Screenshot

Installation

Pre-requisites

You need to have NodeJS and Docker installed on your computer to run MegaLinter locally with MegaLinter Runner

Global installation

npm install mega-linter-runner -g

Local installation

npm install mega-linter-runner --save-dev

No installation

You can run mega-linter-runner without installation by using npx

Example:

npx mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true'

Pre-commit hook

You can run mega-linter-runner as a pre-commit hook

Sample .pre-commit-config.yaml:

repos:
  - repo: https://github.com/oxsecurity/megalinter
    rev: v6.8.0 # Git tag specifying the hook, not mega-linter-runner, version
    hooks:
      - id: megalinter-incremental # Faster, less thorough
        stages:
          - commit
      - id: megalinter-full # Slower, more thorough
        stages:
          - push

See .pre-commit-hooks.yaml for more details.

Usage

mega-linter-runner [OPTIONS] [FILES]

The options are only related to mega-linter-runner. For MegaLinter options, please use a .mega-linter.yml configuration file

| Option | Description | Default | |---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------| | -p --path | Directory containing the files to lint | current directory | | -f --flavor | Set this parameter to use a MegaLinter flavor | all | | -d --image | You can override the used docker image, including if it's on another docker registry | | | -e --env | Environment variables for MegaLinter, following format 'ENV_VAR_NAME=VALUE' for a single value or "'ENV_VAR_NAME=VALUE1,VALUE2'" for a list of valuesWarning: Quotes are mandatory | | | --fix | Automatically apply formatting and fixes in your files | | | -r --release | Allows to override MegaLinter version used | v5 | | -h --help | Show mega-linter-runner help | | | -v --version | Show mega-linter-runner version | | | --container-engine | Allows to specify a docker engine (docker or podman) | docker | | --container-name | Specify MegaLinter container name | | | --remove-container | Remove MegaLinter Docker container when done | | | -i --install | Generate MegaLinter local configuration files and CI/CD workflows | | | -i --upgrade | Upgrade your MegaLinter configuration files to use the latest version | | | --custom-flavor-setup | Initialize a new repository to generate a custom flavor | | | --custom-flavor-linters | Comma-separated list of linter keys if using --custom-flavor-setup | |

You can also use npx mega-linter-runner if you do not want to install the package

Examples

# Run with all defaults
mega-linter-runner
# Scan a folder and apply fixes
mega-linter-runner -p myFolder --fix
# Send environment variables
mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true'
# Use python flavor beta version, only on some files
mega-linter-runner --flavor python --release beta --filesonly path/to/my/file1.py another/path/to/a/file.js and/another/file.py
# Use Podman as engine
mega-linter-runner --flavor documentation --container-engine podman

Configuration

You can generate a ready-to-use .mega-linter.yml configuration file by running npx mega-linter-runner --install at the root of your repository

Runner Install

Linters

Languages

| | Language | Linter | Additional | |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------:|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | | BASH | bash-execBASH_EXEC | | | | BASH | shellcheckBASH_SHELLCHECK | GitHub stars sarif | | | BASH | shfmtBASH_SHFMT | GitHub stars formatter | | | C | cppcheckC_CPPCHECK | | | | C | cpplintC_CPPLINT | GitHub stars | | | C | clang-formatC_CLANG_FORMAT | GitHub stars autofix | | | CLOJURE | clj-kondoCLOJURE_CLJ_KONDO | GitHub stars | | | CLOJURE | cljstyleCLOJURE_CLJSTYLE | GitHub stars autofix | | | COFFEE | coffeelintCOFFEE_COFFEELINT | GitHub stars | | | C++ (CPP) | cppcheckCPP_CPPCHECK | | | | C++ (CPP) | cpplintCPP_CPPLINT | GitHub stars | | | C++ (CPP) | clang-formatCPP_CLANG_FORMAT | GitHub stars autofix | | | C# (CSHARP) | dotnet-formatCSHARP_DOTNET_FORMAT | GitHub stars formatter | | | C# (CSHARP) | csharpierCSHARP_CSHARPIER | GitHub stars formatter | | | C# (CSHARP) | roslynatorCSHARP_ROSLYNATOR | GitHub stars formatter | | | DART | dartanalyzerDART_DARTANALYZER | GitHub stars | | | GO | golangci-lintGO_GOLANGCI_LINT | GitHub stars autofix sarif | | | GO | reviveGO_REVIVE | GitHub stars sarif | | | GROOVY | npm-groovy-lintGROOVY_NPM_GROOVY_LINT | GitHub stars autofix sarif | | | JAVA | checkstyleJAVA_CHECKSTYLE | GitHub stars sarif | | | JAVA | pmdJAVA_PMD | GitHub stars sarif | | | JAVASCRIPT | eslintJAVASCRIPT_ES | GitHub stars autofix sarif | | | JAVASCRIPT | standardJAVASCRIPT_STANDARD | GitHub stars autofix | | | JAVASCRIPT | prettierJAVASCRIPT_PRETTIER | GitHub stars formatter | | | JSX | eslintJSX_ESLINT | GitHub stars autofix sarif | | | KOTLIN | ktlintKOTLIN_KTLINT | GitHub stars autofix sarif | | | KOTLIN | detektKOTLIN_DETEKT | GitHub stars sarif | | | LUA | luacheckLUA_LUACHECK | GitHub stars | | | LUA | seleneLUA_SELENE | disabled GitHub stars | | | LUA | styluaLUA_STYLUA | GitHub stars | | | MAKEFILE | checkmakeMAKEFILE_CHECKMAKE | disabled GitHub stars | | | PERL | perlcriticPERL_PERLCRITIC | GitHub stars | | | PHP | phpcsPHP_PHPCS | GitHub stars sarif | | | PHP | phpstanPHP_PHPSTAN | GitHub stars sarif | | | PHP | psalmPHP_PSALM | GitHub stars sarif | | | PHP | phplintPHP_PHPLINT | GitHub stars sarif | | | PHP | php-cs-fixerPHP_PHPCSFIXER | GitHub stars | | | POWERSHELL | powershellPOWERSHELL_POWERSHELL | GitHub stars autofix | | | POWERSHELL | powershell_formatterPOWERSHELL_POWERSHELL_FORMATTER | GitHub stars formatter | | | PYTHON | pylintPYTHON_PYLINT | GitHub stars | | | PYTHON | blackPYTHON_BLACK | GitHub stars formatter | | | PYTHON | flake8PYTHON_FLAKE8 | GitHub stars | | | PYTHON | isortPYTHON_ISORT | GitHub stars formatter | | | PYTHON | banditPYTHON_BANDIT | GitHub stars sarif | | | PYTHON | mypyPYTHON_MYPY | GitHub stars | | | PYTHON | nbqaPYTHON_NBQA_MYPY | GitHub stars | | | PYTHON | pyrightPYTHON_PYRIGHT | GitHub stars | | | PYTHON | ruffPYTHON_RUFF | GitHub stars autofix sarif | | | PYTHON | ruff-formatPYTHON_RUFF_FORMAT | GitHub stars formatter | | | R | lintrR_LINTR | GitHub stars | | | RAKU | rakuRAKU_RAKU | GitHub stars | | | RUBY | rubocopRUBY_RUBOCOP | GitHub stars autofix | | | RUST | clippyRUST_CLIPPY | GitHub stars | | | SALESFORCE | code-analyzer-apexSALESFORCE_CODE_ANALYZER_APEX | GitHub stars | | | SALESFORCE | code-analyzer-auraSALESFORCE_CODE_ANALYZER_AURA | GitHub stars | | | SALESFORCE | code-analyzer-lwcSALESFORCE_CODE_ANALYZER_LWC | GitHub stars | | | SALESFORCE | sfdx-scanner-apexSALESFORCE_SFDX_SCANNER_APEX | deprecated GitHub stars | | | SALESFORCE | sfdx-scanner-auraSALESFORCE_SFDX_SCANNER_AURA | deprecated GitHub stars | | | SALESFORCE | sfdx-scanner-lwcSALESFORCE_SFDX_SCANNER_LWC | deprecated GitHub stars | | | SALESFORCE | lightning-flow-scannerSALESFORCE_LIGHTNING_FLOW_SCANNER | disabled GitHub stars | | | SCALA | scalafixSCALA_SCALAFIX | GitHub stars | | | SQL | sqlfluffSQL_SQLFLUFF | GitHub stars autofix | | | SQL | tsqllintSQL_TSQLLINT | GitHub stars | | | SWIFT | swiftlintSWIFT_SWIFTLINT | GitHub stars autofix | | | TSX | eslint[TSX_ESLINT](https://github.com/oxsecurity/megalinter/tree/main/docs/descriptors/tsx_eslint.md