how-to-publish-npm234
v2.0.1-hello
Published
- 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`
Readme
How to run typescript standalone
- Install typescript using command
npm i typescript - Create a .ts file, say
test.ts - Use command
npx tsc test.tsto compile it into js - Run the js file generated using
node test.js
