Hacker News new | past | comments | ask | show | jobs | submit login

`bun` is currently my favorite "just works out of the box" utility for running Typescript programs.

I've tried a couple and struggled with configuration and, on top of it all, bun is simply faster.

So, if you want to write a bunch of `.ts` files and point something at them, I really recommend `bun` (and, frankly, why would you write `.js` in 2023? Probably because you've not tried bun.

Edit: I don't care about bundle sizes, because I'm just using bun to run my @benchristel/taste sub-second test suite.




Have you tried Deno yet? I've been using it for years now, without any config. It's fast, too.



> and, frankly, why would you write `.js` in 2023?

It's surprisingly convenient for munging around random json files or calling random apis that return json (or for dealing with an interaction between the two), especially now that fetch ships with node.


JSON is great, for sure, and "calling random APIs" gets even better with type definition autocompletion!


If you make me start statically typing the random scripts I write to munge data round to answer business questions, I quit.


Fair enough.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: