当前位置:网站首页>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.

边栏推荐
- 测试
- 每周小结(*67):为什么不敢发表观点
- Talking about hardware device computing storage and data interaction
- 软考高级系统架构设计师系列之:信息系统基础知识
- 普通用户无法访问hgfs目录
- Inheritance Considerations
- Browser download shortcut to desktop (PWA)
- pdb drug comprehensive database
- [Message Notification] How about using the official account template message?
- Four implementations of
batch insert: have you really got it?
猜你喜欢

MYSQL-Batch insert data

Euler system (euleros): upgrade Mysql

每周小结(*67):为什么不敢发表观点

Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)

win10 fixed local IP

button去除黑框

Device tree - conversion from dtb format to struct device node structure

Summary of MVCC

项目越写越大,我是这样做拆分的

初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
随机推荐
Unity3D study notes 10 - texture array
By CSDN, torn
情人节浪漫3D照片墙【附源码】
pdb药物综合数据库
Basic usage concepts of vim
pdb drug comprehensive database
Unknown Bounded Array
简单易用的任务队列-beanstalkd
Nmap manuals - the full version
解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
Lua introductory case of actual combat 1234 custom function and the standard library function
New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
Dart named parameter syntax
这个地图绘制工具太赞了,推荐~~
HIRO: Hierarchical Reinforcement Learning 】 【 Data - Efficient Hierarchical Reinforcement Learning
大佬们,MySQL cdc source在增量过程中回收 replication slave 和 r
初出茅庐的小李第113篇博客项目笔记之机智云智能浇花器实战(2)-基础Demo实现
How to download the Keil package
Summary of mobile page optimization in seconds
MYSQL Index Analysis