New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typescript-plus

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-plus

An enhanced version of the original typescript compiler.

  • 2.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75
decreased by-30.56%
Maintainers
1
Weekly downloads
 
Created
Source

npm version Downloads

typescript-plus

TypeScript is a language for application-scale JavaScript (For more information, please visit : typescriptlang.org). The typescript-plus project provides extra features to the original typescript compiler, such as emitting reflection data of class, get/set accessor optimization and conditional compilation.

Installing

First make sure you have installed the latest version of node.js (You may need to restart your computer after this step).

For use as a command line app:

npm install -g typescript-plus

For programmatic use:

npm install typescript-plus

Usage

tsc-plus [input files] [options]

Documentation

To learn how to use the original typescript compiler, please visit the following links:

##Extra Options

OptionTypeDefaultDescription
emitReflectionbooleanfalseEmit the reflection data of class .
accessorOptimizationbooleanfalseIf an accessor contains only one call to another method, use that method as the accessor method directly.
definesObjectReplace the global variables with the constants defined in the "defines"" object.

Note: The "defines" option is only allowed in tsconfig.json, and not through command-line switches.

Example tsconfig.json file:

{
    "compilerOptions": {
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": true,
        "preserveConstEnums": true,
        "sourceMap": true,
        "emitReflection": true,
        "accessorOptimization": true,
        "defines": {
            "DEBUG": false,  // the value can be boolean, number or string.
            "RELEASE": true
        }

    },  
    "files": [
        "core.ts",
        "sys.ts"
    ]  
}

Keywords

FAQs

Package last updated on 12 Oct 2016

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