javascript - Is there a way to run TypeScript on the command line? - Stack Overflow

I know that I can run JavaScript by running node through the mand line, but is there a way to play arou

I know that I can run JavaScript by running node through the mand line, but is there a way to play around with TypeScript on the mand line? Or must I use a text editor?

I know that I can run JavaScript by running node through the mand line, but is there a way to play around with TypeScript on the mand line? Or must I use a text editor?

Share Improve this question edited Mar 28, 2022 at 19:51 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Mar 26, 2022 at 23:46 Dylan L.Dylan L. 1,3173 gold badges21 silver badges42 bronze badges 1
  • 1 See npmjs./package/ts-node – elclanrs Commented Mar 26, 2022 at 23:50
Add a ment  | 

1 Answer 1

Reset to default 6

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745043233a4607936.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信