Socket
Socket
Sign inDemoInstall

typescript-api

Package Overview
Dependencies
1
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-api

TypeScript API exposed (includes definition file)


Version published
Maintainers
2
Weekly downloads
39
decreased by-27.78%

Weekly downloads

Readme

Source

TypeScript API

TypeScript API exposed (includes definition file).

This version is compatable with TypeScript 1.0.

Dependency Status NPM version Views

NPM

TypeScript Usage

First, install dt-node as a bower dependency:

$ bower install --save-dev dt-node https://github.com/jedmao/dt-node.git

Then, you can reference the typescript-api.d.ts. You have to do it this way because the typescript-api has to use the same node.d.ts that your application is using. Otherwise, it will throw compiler errors.

/// <reference path="node_modules/typescript-api/typescript-api.d.ts" />
import ts = require('typescript-api');
var compiler = new ts.TypeScriptCompiler(new ts.NullLogger());

JavaScript Usage

var ts = require('typescript-api');
var compiler = new ts.TypeScriptCompiler(new ts.NullLogger());

License

Released under the MIT license.

Bitdeli Badge

Keywords

FAQs

Last updated on 03 Apr 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc