node-typeinclude makes it easy to include typescript files into your nodejs project at runtime, without the need to recompile every time you change something.
npm install -g typeinclude
node-typeinclude allows you @include typescript classes from the top of typescript files
@include SomeClass; var instance = new SomeClass(); instance.doSomething();
var path = require("path"); var typeinclude = require("typeinclude")(__dirname/*Path to module's root, with the package.json*/); var myTypeScriptClass = typeinclude("myTypeScriptClass.ts", __dirname + path.sep + "folder with typescript relative to current file"); myTypeScriptClass.someMethod();
or from the commandline
node-typeinclude is licensed under Apache License 2.0