typestring

String-in/string-out TypeScript compiler front-end

MIT 29 个版本
安装
npm install typestring
yarn add typestring
pnpm add typestring
bun add typestring
README

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 2018-06-14
2.6.1 2017-11-10
2.5.3 2017-10-18
2.3.3 2017-05-24
2.0.3-1 2016-10-11
2.0.3 2016-10-11
1.8.10 2016-04-24
1.7.5 2016-01-04
1.7.3 2015-12-01
1.6.2 2015-09-18
1.5.3-2 2015-07-21
1.5.3-1 2015-07-21
1.5.3 2015-07-20
1.4.1-3 2015-03-10
1.4.1-2 2015-03-03
1.4.1 2015-03-03
1.0.0-5 2014-11-12
1.0.0-4 2014-11-01
1.0.0-3 2014-09-08
1.0.0-2 2014-04-25
1.0.0-1 2014-04-16
1.0.0 2014-04-04
0.9.7-1 2014-03-05
0.9.7 2014-02-27
0.9.5-4 2014-02-07
0.9.5-3 2014-01-24
0.9.5-2 2014-01-24
0.9.5-1 2014-01-15
0.9.5 2014-01-15