A Deno version of npx, allowing you to run npm packages without installing them.
deno install -Ag -n dnpx jsr:@taptap/dnpx/cliThen you can
- use
dnpxjust likenpx:
dnpx prettier@latest --write .
dnpx create-next-app myapp- use it in project's tasks:
{
"tasks": {
"x": "deno run -A jsr:@taptap/dnpx cli $*"
}
}- use it in scripts:
import { run } from "@taptap/dnpx";