Master The Art Of Using Typescript Without The Compile Step

Written by thebenforce | Published 2021/04/17
Tech Story Tags: typescript | scripting | bash | backend | nodejs | software-development | coding | web-monetization

TLDR With just a few tricks you can start writing your scripts in TypeScript. The only magic that's required is the first line needs to be a shebang statement. Set up your environment and globally install node and npm packages to create your script. Then mark the script as executable and use bash to execute the contents of the file. You can now directly execute your typescript file using bash or node-node-generated-script. Using bash to run your TypeScript script is easy to do with bash.via the TL;DR App

no story

Written by thebenforce | 6x AWS Certified Senior Software Engineer. I write about architecture, infrastructure as code, and automation.
Published by HackerNoon on 2021/04/17