2.0.1-hello • Published 2 years ago
how-to-publish-npm234 v2.0.1-hello
How to run typescript standalone
- Install typescript using command
npm i typescript
- Create a .ts file, say
test.ts
- Use command
npx tsc test.ts
to compile it into js - Run the js file generated using
node test.js