Last active
May 17, 2022 00:56
-
-
Save tommykw/87185005f3914a9ee99521e33b51d0ed to your computer and use it in GitHub Desktop.
TypeScript Compiling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up | |
$ npm init --yes | |
$ npm install typescript | |
$ npx tsc --init | |
$ mkdir src && cd src && touch index.ts | |
// node | |
$ npx tsc | |
$ node index.js | |
// deno | |
$ deno run index.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment