2.9.2 • Published 6 years ago
typestring v2.9.2
typestring
typestring
is a string-in/string-out TypeScript compiler front-end.
Installation
$ npm install typestring
Example
let typestring = require('typestring');
let js = typestring.compile('class Foo { public bar = 2; }');
Output string:
var Foo = (function () {
function Foo() {
this.bar = 2;
}
return Foo;
})();
File references
File references can be used, but the file contents must be passed to compile
as strings or buffers:
typestring.compile('/// <reference path="foo.ts" />', {
'foo.ts': fs.readFileSync('lib/foo.ts')
});
License
This software is released under the terms of the MIT license. See LICENSE
.
2.9.2
6 years ago
2.6.1
7 years ago
2.5.3
7 years ago
2.3.3
7 years ago
2.0.3-1
8 years ago
2.0.3
8 years ago
1.8.10
8 years ago
1.7.5
8 years ago
1.7.3
8 years ago
1.6.2
9 years ago
1.5.3-2
9 years ago
1.5.3-1
9 years ago
1.5.3
9 years ago
1.4.1-3
9 years ago
1.4.1-2
9 years ago
1.4.1
9 years ago
1.0.0-5
10 years ago
1.0.0-4
10 years ago
1.0.0-3
10 years ago
1.0.0-2
10 years ago
1.0.0-1
10 years ago
1.0.0
10 years ago
0.9.7-1
10 years ago
0.9.7
10 years ago
0.9.5-4
10 years ago
0.9.5-3
10 years ago
0.9.5-2
10 years ago
0.9.5-1
10 years ago
0.9.5
10 years ago