最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论