Skip to content

zx

This plugin is enabled if "zx" is listed in "dependencies" or "devDependencies" in package.json.

This plugin adds argument parsing for the zx binary. Configuration:

string: ["eval"]
boolean: ["experimental", "help", "install", "repl", "version"]
alias: {"eval": ["e"], "help": ["h"], "install": ["i"], "version": ["v"]}
stopEarly: true
args: argv => argv.filter((arg, i) => arg !== 'false' || (argv[i - 1] !== '--install' && argv[i - 1] !== '-i'))
resolveInputs: parsed =>
parsed.repl || parsed.eval || parsed.help || parsed.version ? [] : parsed._.slice(0, 1).map(id => toModule(id))

The configuration was generated from source code. Also see Script Parser.

This page was generated from the zx plugin source code.

ISC License © 2026Lars Kappert