Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 638 Bytes

commands.md

File metadata and controls

35 lines (28 loc) · 638 Bytes

Flags

  • -y: Assumes "yes" as the default answer for all prompts.
  • -D: Installs packages only as development dependencies.

Initiate Node project

npm init -y

Install Typescript locally

npm i typescript -D

Locally compile all Typescript files into Javascript manually

npx tsc [filename].ts

You need to use npx when executing NodeJS locally.

Installs ts-node

npm i ts-node -D

Executes files directly without the need to compile them to JavaScript manually

npx ts-node [filename].ts

Install ESLint

npm i eslint -D