Tag: typescript

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Thu, October 1, 2020

Due to vast popularity of NOT Node.js, but JavaScript itself, and web browsers, I see Deno as a scripting language platform for JavaScript and WASM. It also supports JSDOM, therefore all web browser methods.

It makes JavaScript and WASM comparable to JVM bytecode; but rather for dynamic typing.

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Wed, April 22, 2020

This might not be something so special, but I bet not everyone knows.

Running *.ts files directly

Use ts-node instead of node, and ts-node-dev instead of nodemon.

Cannot run ts-node due to import syntaxes? No problemo, try this

ts-node -O '{"module": "commonjs"}' scripts/example.ts

I do not recommend you use ts-node in production.