In this video, we'll show you how to run a direct Typescript file in Nodejs. This is a useful technique for writing large applications using Typescript.
By using this technique, you'll be able to reduce the amount of code you have to write and make your applications more efficient. In this video, we'll show you how to run a direct Typescript file in Nodejs and explain the benefits of using this approach.
How to run a direct typescript file in nodejs
There are two ways to run the file
1) ts-node development to run the file - (npm install -D ts-node)
add a script in package.json "start": "ts-node index.ts"
to run the file by $ npm start or yarn start
2) ts-node global command to run the file - (npm install -g ts-node)
to run the file by $ ts-node filename.ts
Thanks for watching!
#typescript #ts-node #ts
Watch video How to run TypeScript without transpile the code | Direct TypeScript Execution online, duration hours minute second in high quality that is uploaded to the channel MrNick 23 November 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 250 times and liked it 6 visitors.