Home > Software engineering >  Is there a way to run typescript on the command line?
Is there a way to run typescript on the command line?

Time:03-27

I know that I can run Javascript by running node through the command line, but is there a way to play around with typescript on the command line? or must I use a text editor?

CodePudding user response:

If you install ts-node for a project, you can then run it directly by typing in npx ts-node. It works similarly to Node's REPL.

enter image description here

  • Related