ts-node
A tool that executes a Node program that is written in TypeScript
Basically, instead of using this command every time:
|
|
you can use this tool.
Installing and Usage
Install it globally by npm:
|
|
Create a file add.ts with simple TypeScript code:
|
|
Run ts-node to execute this file:
|
|
It will print the result:
|
|