Socket
Socket
Sign inDemoInstall

tsify

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsify

Browserify plugin for compiling Typescript


Version published
Weekly downloads
40K
increased by5.47%
Maintainers
1
Weekly downloads
 
Created
Source

tsify

Browserify plugin for compiling Typescript 1.0

NPM version build status Dependency status devDependency Status

example usage

On the command line:

$ browserify main.ts -p [ tsify --noImplicitAny ] > bundle.js

With the Browserify API:

browserify()
    .add('main.ts')
    .plugin('tsify', { noImplicitAny: true })
    .bundle();

installation

Just plain ol' npm installation:

npm install tsify

options

  • tsify will generate sourcemaps if the --debug option is set on Browserify.
  • tsify supports the following options from the Typescript compiler (via ts-compiler):
--noImplicitAny

Warn on expressions and declarations with an implied any type.

--removeComments

Do not emit comments to output.

--target=version

Specify ECMAScript target version: 'ES3' (default), or 'ES5'

why a plugin?

There are several Typescript compilation transforms available on npm, all with various issues. The Typescript compiler automatically performs dependency resolution on module imports, much like Browserify itself. Browserify transforms are not flexible enough to deal with multiple file outputs given a single file input, which means that any working Typescript compilation transform either skips the resolution step (which is necessary for complete type checking) or performs multiple compilations of source files further down the dependency graph.

tsify avoids this problem by using the power of plugins to perform a single compilation of the Typescript source up-front, using Browserify to glue together the resulting files.

license

MIT

Keywords

FAQs

Package last updated on 11 Jul 2014

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