当前位置:网站首页>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.
边栏推荐
- [Search topic] After reading the inevitable BFS solution to the shortest path problem
- Modify Postman installation path
- IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“
- Nmap 操作手册 - 完整版
- Elastic Stack的介绍
- 软件测试面试(三)
- 预言机简介
- Inheritance Considerations
- HIRO: Hierarchical Reinforcement Learning 】 【 Data - Efficient Hierarchical Reinforcement Learning
- [cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
猜你喜欢
随机推荐
MYSQL transactions
How to get started with YOLO?How to implement your own training set?
让你的 Lottie 支持文字区域内自动换行
Data Middle Office Construction (VII): Data Asset Management
leetcode6133. 分组的最大数量(中等)
从设备树(dtb格式数据)中解析出bootargs
Chain programming, packages, access
Inheritance Considerations
解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
IDEA does not recognize the module (there is no blue square in the lower right corner of the module)
2. # code comments
被 CSDN,伤透了心
ARM 交叉编译
Dart named parameter syntax
Guys, MySQL cdc source recycles replication slave and r in incremental process
/usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*Solution
"Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up
一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“