require-typescript

require('require-typescript') lets you load typescript files directly from Node.js. For example: var mymodule = require('./mymodule.ts');

See better-require.

Install

npm install require-typescript

Usage

require('require-typescript');
var mymodule = require('./mymodule.ts');

Reference

http://nodejs.org/api/all.html#all_require_extensions