Join Nostr
2025-03-22 11:01:57 UTC

Axel Rauschmayer on Nostr: #TypeScript: Node.js has become quite good at auto-detecting what kind of code is ...

#TypeScript: Node.js has become quite good at auto-detecting what kind of code is passed to it via CLI options or stdin—e.g. this works (type annotation is only there to demo this feature):

node -e 'const x: string = "YES"; console.log(x)'

Details: https://nodejs.org/api/cli.html#--input-typetype