Live data from Hacker News

Node.js is able to execute TypeScript files without additional configuration

nodejs.org

61–70 of 275 posts

Re: Node.js is able to execute TypeScript files without additional configuration

#62

Earlier quoted context omitted.

This. It's 2025 and the node ecosystem is finally usable by default! ESM modules just work with both Node and Typescript, Node can run .ts files, and there's the a good enough test runner built in. --watch. The better built in packages - `node:fs/promises` - are nice with top-level await for easier async loops. It took a while to convince everyone involved to just be pragmatic, but it's nice now.

does it have a go fmt / lint command yet?

jslint/tslint are an install away.

Re: Node.js is able to execute TypeScript files without additional configuration

#63
post #4

Impressed with what Node is doing the last years, deno and bun has really made Node focus and improve. It was stuck for a while

Have them though?

On the projects I am involved, they could even not exist, only node LTS releases matter, and the most recent projects are still node 20.

Re: Node.js is able to execute TypeScript files without additional configuration

#65

Earlier quoted context omitted.

This. It's 2025 and the node ecosystem is finally usable by default! ESM modules just work with both Node and Typescript, Node can run .ts files, and there's the a good enough test runner built in. --watch. The better built in packages - `node:fs/promises` - are nice with top-level await for easier async loops. It took a while to convince everyone involved to just be pragmatic, but it's nice now.

does it have a go fmt / lint command yet?

  npx prettier

Re: Node.js is able to execute TypeScript files without additional configuration

#68
post #63
post #4

Impressed with what Node is doing the last years, deno and bun has really made Node focus and improve. It was stuck for a while

Have them though? On the projects I am involved, they could even not exist, only node LTS releases matter, and the most recent projects are still node 20.

22 is LTS. The future is now.
Post reply on HN