Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typescript vs Tsc vs Ntypescript

This all started with tsc --init not working...

What's the difference between:

npm install -g typescript
npm install -g tsc
npm install -g ntsc

I thought "tsc" was just a shortcut for typescript, but listing them out seems to give different versions

PS C:\angular2-app> npm list -g tsc
C:\Users\Wheeeeee\AppData\Roaming\npm
└── [email protected]

PS C:\angular2-app> npm list -g typescript
C:\Users\Wheeeeee\AppData\Roaming\npm
└── [email protected]

So, what's the difference between the two. Is typescript the library and tsc some sort of a command line helper?

P.S. I don't really care about ntsc, it's just part of the question if you know offhand or for some reason think it's a must. Ignore otherwise.

EDIT: Given the answer below, how does powershell know which tsk I am trying to use? How do I specify?

like image 347
VSO Avatar asked Sep 10 '16 03:09

VSO


People also ask

What is tsc TypeScript?

Tsc stands for `TypeScript compiler` and is a simple tool included in Typescript itself, allowing you to compile any ts files into js.

Is tsc deprecated?

What is tsc? A deprecated release of the TypeScript compiler. Visit Snyk Advisor to see a full health score report for tsc, including popularity, security, maintenance & community analysis.

What is the tsc command?

The tsc command envokes the TypeScript compiler. When no command-line options are present, this command looks for the tsconfig. json file. If no tsconfig. json is found, it returns by dumping the usage of tsc command.

What is node tsc?

tsc is the TypeScript compiler, which is completely separate from ts-node . ts-node is a wrapper for Node. js's node executable that installs a TypeScript-enabled module loader that compiles TypeScript on the fly as needed. From its npm page: TypeScript Node works by registering the TypeScript compiler for .


1 Answers

tsc is some package with the same name as the typescript compiler on the command line. typescript is the real TypeScript package.

like image 178
Rikki Gibson Avatar answered Sep 24 '22 04:09

Rikki Gibson