当前位置:网站首页>Run typescript code directly using TS node
Run typescript code directly using TS node
2022-06-23 06:59:00 【Tianmiao studio】
test ts Code time For convenience no need tsc To compile Direct use ts-node To joint commissioning ts Code
install typescript
npm install -g typescript
//$ tsc -v
//Version 3.2.2
install ts-node npm Official address https://www.npmjs.com/package/ts-node
npm install -g ts-nodedemo.ts file
const test1:number =1;
console.log(test1);The input terminal
ts-node demo.ts
// Be careful ts File path such as ts-node D:/project1/testTs.ts
// The terminal prints out 1
边栏推荐
- swagger3整合oauth2 认证token
- Linux Installation mysql8.0.25
- MySQL redo log redo log
- cmder
- 为什么TCP协议是三次握手而不是两次?
- 994. 腐烂的橘子-非递归法
- Mysql5.6 (5.7-8) is based on shardingsphere5.1.1 sharding proxy mode. Read / write separation
- Swagger3 integrates oauth2 authentication token
- leetcode - 572. A subtree of another tree
- Concepts and differences of DQL, DML, DDL and DCL
猜你喜欢
随机推荐
mongodb 记录
Explain csma/cd, token bus and token ring clearly
XML schema record
【项目实训】线形组件的细节
Some difficulties in making web pages
Haas506 2.0 development tutorial - Advanced Component Library -modem SMS (only supports versions above 2.2)
【项目实训】线形箭头的变化
Badly placed()'s problem
Chrome删除重复书签
Verilog语法讲解
MySQL的意向共享锁、意向排它锁和死锁
746. 使用最小花费爬楼梯-动态规划
Idea installing the cloudtoolkit plug-in
【STL】关联容器之unordered_map用法总结
[daily training] 513 Find the value in the lower left corner of the tree
XShell7 下载
数据在内存中的存储方式(C语言)
[STL] summary of stack and queue usage of container adapter
Mysql5.6 (5.7-8) is based on shardingsphere5.1.1 sharding proxy mode. Read / write separation
Business logic design of physical warehouse and virtual warehouse in middle inventory









