zuke.tools.npx
@zuke/npx 1.1.0: @zuke/npx — typed NpxTasks wrappers for the npx package runner, for use in Zuke build targets (including builds that drive Node projects).
zuke on PyPI ↗ 2 symbols
Symbols
class NpxSettings(ToolSettings) Settings for the npx package runner.
-
command(name: str) -> SelfThe package binary to execute (required unless call is set).
-
package(*specs: str) -> SelfPackages to load before running (
--package=); repeatable. -
call(script: str) -> SelfExecute a string as if inside
npm run-script(--call). -
yes() -> SelfAuto-install a missing package without prompting (
--yes). -
no() -> SelfNever auto-install; fail if the package is missing (
--no). -
ignore_existing() -> SelfIgnore binaries already present in
$PATH(--ignore-existing). -
exec_args(*args: str | float) -> SelfArguments forwarded to the command.
class NpxTasks Typed task functions for the npx package runner.
-
static async npx(ctx: ServiceContext, configure: Callable[[NpxSettings], NpxSettings] | None=None) -> ExecResultDownload and execute a package binary:
npx <command>.