logoalt Hacker News

flohofwoe • today at 2:19 PM • 2 replies • view on HN

To summarize my feelings: Shit!

Deno's ability to import directly from a package registry or even git repo in a standalone TS script without requiring a package.json or similar 'meta-data' file was actually really nice for shell scripting stuff. AFAIK node.js still can't do anything similar?


Replies

ewy1 • today at 3:07 PM

if you're not locked to javascript you could use python with pep-723[1] to declare inline dependencies

1: https://peps.python.org/pep-0723/

➕ show 1 reply
jauntywundrkind • today at 3:34 PM

`zx --install` will give you this. It's quite handy and enjoyable generally for shell scripting in ts/js. https://google.github.io/zx/cli#install