3 ms·
This is so cool! Is it too late to change the import name? I immediately thought of jquery when seeing "$".
by bryzaguy 3y ago
This is so cool! Is it too late to change the import name? I immediately thought of jquery when seeing "$".
- geuis 3y agoHmm you have a point but I don't think it's a problem since this is for the cli instead of the browser. Plus $ is pretty common in the shell to indicate the prompt.
- mst 3y agoimport { $ as sh } from "bun"; (if you're coming from old school client side javascript I can see the momentary confusion (and in fact I had to blink myself), but in a shell script $ making you think of a shell prompt nonetheless seems like a pretty reasonable default to me)