Things I Wish Someone Had Told Me Sooner

TS Node ts-node lets you run .ts files from the cli as if they were transpiled .js files. Simply install it: And run a .ts file: Or use it…


This content originally appeared on Things I've Learnt and was authored by Things I've Learnt

TS Node

ts-node lets you run .ts files from the cli as if they were transpiled .js files.

Simply install it:

$ npm install -g ts-node
$ npm install -g typescript

And run a .ts file:

$ ts-node script.ts

Or use it as a REPL:

$ ts-node

Nodemon even supports it out of the box!


This content originally appeared on Things I've Learnt and was authored by Things I've Learnt


Print Share Comment Cite Upload Translate Updates
APA

Things I've Learnt | Sciencx (2020-01-04T08:13:35+00:00) Things I Wish Someone Had Told Me Sooner. Retrieved from https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/

MLA
" » Things I Wish Someone Had Told Me Sooner." Things I've Learnt | Sciencx - Saturday January 4, 2020, https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/
HARVARD
Things I've Learnt | Sciencx Saturday January 4, 2020 » Things I Wish Someone Had Told Me Sooner., viewed ,<https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/>
VANCOUVER
Things I've Learnt | Sciencx - » Things I Wish Someone Had Told Me Sooner. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/
CHICAGO
" » Things I Wish Someone Had Told Me Sooner." Things I've Learnt | Sciencx - Accessed . https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/
IEEE
" » Things I Wish Someone Had Told Me Sooner." Things I've Learnt | Sciencx [Online]. Available: https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/. [Accessed: ]
rf:citation
» Things I Wish Someone Had Told Me Sooner | Things I've Learnt | Sciencx | https://www.scien.cx/2020/01/04/things-i-wish-someone-had-told-me-sooner/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.