2018-01-06 13:19:04 +00:00
|
|
|
# npx
|
|
|
|
|
|
|
|
> Execute binaries from `npm` packages.
|
2022-02-02 18:43:21 +00:00
|
|
|
> More information: <https://github.com/npm/npx>.
|
2018-01-06 13:19:04 +00:00
|
|
|
|
|
|
|
- Execute the binary from a given npm module:
|
|
|
|
|
2022-02-18 11:51:42 +00:00
|
|
|
`npx {{module_name}} {{command_arguments}}`
|
2018-01-06 13:19:04 +00:00
|
|
|
|
|
|
|
- In case a package has multiple binaries, specify the package name along with the binary:
|
|
|
|
|
2022-02-18 11:51:42 +00:00
|
|
|
`npx --package {{package_name}} {{module_name}}`
|
2018-01-06 13:19:04 +00:00
|
|
|
|
2022-02-18 11:51:42 +00:00
|
|
|
- Run a command if existis in the current path or in `node_modules/.bin`:
|
|
|
|
|
|
|
|
`npx --no-install {{command}} {{command_arguments}}`
|
|
|
|
|
|
|
|
- Execute the binary from a given npm module suppressing any output from `npx` itself:
|
|
|
|
|
|
|
|
`npx --quiet {{module_name}} {{command_arguments}}`
|
|
|
|
|
|
|
|
- Display help:
|
2018-01-06 13:19:04 +00:00
|
|
|
|
|
|
|
`npx --help`
|