Replies: 2 comments 2 replies
-
CC relevant teams: @nodejs/loaders @nodejs/npm |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm sorry, but the explanation of "why not" is likely pretty long, and I have no real time for it. It boils down to security and reproducibility, so I don't expect this feature to be implemented anytime soon. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bun and deno allow for writing imports in single-file scripts without a package.json - in bun I believe this is called auto-install or autoimport with the Bun module resolution algorithm https://bun.sh/docs/runtime/autoimport
This aligns with similar features in various languages https://dbohdan.com/scripts-with-dependencies#javascript -
@Grab
from Groovy is a relatively old flavor of this feature, with Python'spip-run
being more recentI tried to find an issue proposing this feature but I couldn't - has this been discussed? I figured searching bun or deno would be mentioned in such an issue and I didn't find them.
Beta Was this translation helpful? Give feedback.
All reactions