Add typescript to your NodeJS app in 4 easy steps.

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

2. Rename js files to end with ts

find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;

3. create a tsconfig.json file

4. run app using ts-node

ts-node {yourMainEntryPoint}.ts

That should be it!

Yaser Ibrahim

Learning things. Building things.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store