当前位置:网站首页>TypeScript simplifies running ts-node
TypeScript simplifies running ts-node
2022-08-01 03:33:00 【Front end dish dish DayDayUp】
Problem description: After each code modification, two commands (tsc file name, node file name) must be executed repeatedly to run the TS code, which is too cumbersome.
Simplified way: Use the ts-nodeb package to execute code directly in Node.js.
Installation command: npm i -g ts-node (the ts-node package providests-node command).
How to use: ts-node hello.ts.
Explanation: The ts-node command secretly converts TS->JS internally, and then runs the JS code.

边栏推荐
- 785. Quick Sort
- [uniCloud] Application and Improvement of Cloud Objects
- Basic implementation of vector
- Flink 部署和提交job
- One service layer needs to call the other two service layers to obtain data and assemble it into the final data. The data is all lists. How to design the cache?
- Guys, MySQL cdc source recycles replication slave and r in incremental process
- "Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up
- Inheritance Considerations
- 剑指offer专项突击版第16天
- Elastic Stack的介绍
猜你喜欢

MYSQL-Batch insert data

ARM cross compilation

解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题

初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现

IDEA debugging

Game Security 03: A Simple Explanation of Buffer Overflow Attacks
![[Search topic] After reading the inevitable BFS solution to the shortest path problem](/img/f8/fbe906106dc8f7f7a6bd54d2dc3bc1.png)
[Search topic] After reading the inevitable BFS solution to the shortest path problem

二舅

Solve the problem that Excel opens very slowly after installing MySQL

每周小结(*67):为什么不敢发表观点
随机推荐
Browser download shortcut to desktop (PWA)
Weekly Summary (*67): Why not dare to express an opinion
The fledgling Xiao Li's 112th blog project notes: Wisdom cloud intelligent flower watering device actual combat (1) - basic Demo implementation
预言机简介
让你的 Lottie 支持文字区域内自动换行
Chinese version of Pylint inspection rules
Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
Take you to experience a type programming practice
设备树的树形结构到底是怎样体现的?
Ordinary users cannot access HGFS directory
链式编程、包、访问权限
This map drawing tool is amazing, I recommend it~~
Guys, MySQL cdc source recycles replication slave and r in incremental process
Google Earth Engine - Error resolution of Error: Image.clipToBoundsAndScale, argument 'input': Invalid type
Flink deploys and submits jobs
MYSQL transactions
When opening a MYSQL table, some can display editing, some do not, how to set.
Data Middle Office Construction (VII): Data Asset Management
Lua introductory case of actual combat 1234 custom function and the standard library function
Which interpolation is better for opencv to zoom in and out??