Transpile CoffeeScript code to TypeScript (v0.1.0, last updated 2013). Aims to produce idiomatic TypeScript rather than perfectly equivalent code, targeting migration of codebases to TypeScript. Key differentiator: focuses on translation to TypeScript syntax, not JavaScript. Release cadence: single initial release only. Note: outdated, may not work with modern Node.js or TypeScript.
npm install coffee-script-to-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile CoffeeScript to TypeScript using the library function and handle errors due to limited compatibility.
Manually add type annotations after transpilation.
Install underscore and ensure it's available in the runtime.
Use alternatives like decaffeinate or ts-ify for modern codebases.
Migrate to decaffeinate or TypeScript compiler with CoffeeScript plugin.
npm install underscore && require('underscore') before using the library.Use custom range function or manually adjust generated code for descending ranges.