Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsc

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc

A deprecated release of the TypeScript compiler

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162K
increased by2.41%
Maintainers
2
Weekly downloads
 
Created

What is tsc?

The `tsc` npm package is the TypeScript compiler, which is used to compile TypeScript code into JavaScript. It provides a variety of functionalities including type checking, transpiling TypeScript to JavaScript, and generating declaration files.

What are tsc's main functionalities?

Transpile TypeScript to JavaScript

This command takes a TypeScript file (`input.ts`) and compiles it into a JavaScript file (`output.js`).

tsc input.ts --outFile output.js

Type Checking

This command performs type checking on the TypeScript files in the project without emitting any JavaScript output. It is useful for ensuring type safety.

tsc --noEmit

Generate Declaration Files

This command generates a declaration file (`output.d.ts`) for the given TypeScript file (`input.ts`). Declaration files are useful for providing type information to other TypeScript projects.

tsc input.ts --declaration --outFile output.d.ts

Watch Mode

This command runs the TypeScript compiler in watch mode, which means it will recompile the project whenever a file changes. This is useful for development workflows.

tsc --watch

Project Compilation

This command compiles a TypeScript project based on the configuration specified in the `tsconfig.json` file. It allows for more complex project setups and configurations.

tsc --project tsconfig.json

Other packages similar to tsc

Keywords

FAQs

Package last updated on 07 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc