tsdetect
v0.0.2
Published
A command line tool to detect TypeScript maybe used in your project.
Downloads
1
Readme
tsdetect
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.
- node_modules/typescript
- node_modules/gulp-typescript/node_modules/typescript
- node_modules/grunt-typescript/node_modules/typescript
- global installed
Contribution
- Fork it ( http://github.com/nabeix/tsdetect )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
MIT