Socket
Socket
Sign inDemoInstall

angular.ts2js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular.ts2js

Angular 2 Typescript to Javascript


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

angular.ts2js

From the command line

node rewrite -f=examples/simple/app.ts or gulp rewrite -f=examples/simple/app.ts

To specify a suffix

node rewrite -f=examples/simple/app.ts --suffix=test or gulp rewrite -f=examples/simple/app.ts --suffix=test

To specify an output folder

node rewrite -f=examples/simple/app.ts --outDir=foo or gulp rewrite -f=examples/simple/app.ts --outDir=foo

From code

npm install angular2.ts2js

In your app.

var rewriter = require('angular.ts2js');
rewriter.rewrite('c:/foo/bar'); // to rewrite every .ts file in the foo/bar dir
// or
rewriter.rewrite('c:/foo/bar/xxx.ts') // to rewrite just the xxx.ts file
//
rewriter.rewrite('c:/foo/bar', { outDir='foo', suffix='test' }); // to specify an outDir and a suffix

License

Powered by Google ©2010-2015. Code licensed under the Apache License, Version 2.0. Documentation licensed under CC BY 3.0.

FAQs

Package last updated on 10 Oct 2015

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