A command line utility to transform CoffeeScript files to TypeScript
node >= v4.0.0
npm install -g nikaspran/coffee-to-ts#master
coffee-to-ts <glob>
- Convert all CoffeeScript files in the current directory
> coffee-to-ts "*.coffee"
Converted productPreviewDirective.coffee => productPreviewDirective.ts
- Use a different version of Node via
nvm
and convert all subdirectories of the current directory
> nvm exec stable coffee-to-ts "**/*.coffee"
Converted productPreviewDirective.coffee => productPreviewDirective.ts
Converted productDirective.coffee => productDirective.ts