Hacker News new | ask | show | jobs
by Narretz 125 days ago
Kinda crazy that ts-node is still the recommendation when it hasn't been updated since 2023. And likewise crazy that no other lib has emerged that has typescript compilation and typechecking. Of course if it works, don't fix it, but typescript has evolved quite a bit since 2023.
2 comments

I like tsx for this, and it's actively maintained. The author may not know about it. https://github.com/privatenumber/tsx
Love that fact that you don't need anything ts-node/tsx like if you have erasable syntax only. Other than that, there is https://github.com/oxc-project/oxc-node too.