xjsr
v0.2.3
Published
Run jsr packages with npx
Readme
xjsr
Run jsr packages with npx.
Why?
Even though jsr packages are compatible with Node, there is no way to execute
their default export with npx. For more information, see:
https://github.com/jsr-io/jsr-npm/issues/76
Usage
Usage: npx xjsr [--no-cache] @namespace/package[@version][/export] [-- package-args]
Options:
--no-cache Skip the local cache and download the package
-- package-args Arguments to pass to the package
Examples:
npx xjsr @alexgleason/hello
npx xjsr --no-cache @alexgleason/hello
npx xjsr @alexgleason/[email protected]
npx xjsr @alexgleason/hello/world
npx xjsr @alexgleason/hello -- --some-flag valueHow It Works
xjsr:
- Installs the jsr package into a cache dir with npm.
- Runs the default export with node or bun depending on the detected JavaScript runtime.
License
This is free and unencumbered software released into the public domain.
