Skip to content

A basic utility for runnning JSR packages under Node and Bun on the command line. This is a mirror of https://gitlab.com/benjamin-wilkins/jsr-dlx/.

License

Notifications You must be signed in to change notification settings

benjamin-wilkins/jsr-dlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsr-dlx

NPM

A basic utility for runnning JSR packages under Node or Bun on the command line. Based on both of yarn dlx and deno run.

npx jsr-dlx [PACKAGE] [ARGS?]
bunx --bun jsr-dlx [PACKAGE] [ARGS?]

Essentially, jsr-dlx calls npx jsr or bunx jsr to install the package into a temporary directory, and holds a reference to it in the user's cache directory. After this, it tries to figure out the entry point of the package and run it using the same runtime it was called with. When jsr-dlx is called again, it checks the cache file and checks if the directory exists. If it does, jsr-dlx skips the install step.

About

A basic utility for runnning JSR packages under Node and Bun on the command line. This is a mirror of https://gitlab.com/benjamin-wilkins/jsr-dlx/.

Topics

Resources

License

Stars

Watchers

Forks