/coffee-to-ts

[NOT ACTIVELY MAINTAINED] Convert CoffeeScript to TypeScript

Primary LanguageJavaScript

coffee-to-ts

A command line utility to transform CoffeeScript files to TypeScript

[NOT ACTIVELY MAINTAINED] This project is not actively maintained. Feel free to use it if it works for you and submit PRs but it's unlikely that I will personally be making any active changes.

Prerequisites

  1. node >= v4.0.0

Usage

  1. npm install -g nikaspran/coffee-to-ts#master
  2. coffee-to-ts <glob>

Examples:

  1. Convert all CoffeeScript files in the current directory
> coffee-to-ts "*.coffee"
Converted productPreviewDirective.coffee => productPreviewDirective.ts
  1. 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