H
Hono4w ago
hixxz

Can I use JavaScript?

I changed the package.json file, and the program runs normally. I'm not sure if I need to change anything else.
No description
2 Replies
Arjix
Arjix4w ago
can you? yes should you? hell no nodejs can directly run typescript w/o building, by stripping off the types so there is no reason to write normal js node --experimental-transform-types src/index.ts (looks like type-stripping is enabled by default, but type transforming is still experimental and must be passed as a flag)
Arjix
Arjix4w ago
Node.js — Running TypeScript Natively
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

Did you find this page helpful?