1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pnpx.md

18 lines
486 B
Markdown
Raw Normal View History

2021-05-03 21:26:31 +05:30
# pnpx
> Directly execute binaries from npm packages, using `pnpm` instead of `npm`.
> Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead.
2024-10-16 16:51:26 +02:00
> More information: <https://cuyl.github.io/pnpm.github.io/pnpx-cli>.
2021-05-03 21:26:31 +05:30
- Execute the binary from a given `npm` module:
2021-05-03 21:26:31 +05:30
`pnpx {{module_name}}`
- Execute a specific binary from a given `npm` module, in case the module has multiple binaries:
2021-05-03 21:26:31 +05:30
`pnpx --package {{package_name}} {{module_name}}`
- Display help:
`pnpx --help`