Skip to content

A command line tool to detect TypeScript maybe used in your project.

Notifications You must be signed in to change notification settings

nabeix/tsdetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsdetect Build Status

A command line tool to detect TypeScript maybe used in your project.

Install

$ npm install -g tsdetect

Usage

In your project directory, type tsdetect command.

$ tsdetect
/Users/nabeix/.nodebrew/current/lib/node_modules/typescript

Use as node module

$ npm instal tsdetect --save
var tsdetect = require('tsdetect');

tsdetect.detect("/path/to/project", function(error, result) {
    console.log(result);
});

How it works

tsdetect tries to detect TypeScript using npm command in the following order.

  1. node_modules/typescript
  2. node_modules/gulp-typescript/node_modules/typescript
  3. node_modules/grunt-typescript/node_modules/typescript
  4. global installed

Contribution

  1. Fork it ( http://github.com/nabeix/tsdetect )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

About

A command line tool to detect TypeScript maybe used in your project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published