typestring
String-in/string-out TypeScript compiler front-end
Last updated 4 years ago .
· Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install typestring 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.9.2                                ...           latest (4 years ago)

29 Versions

  • 2.9.2                                ...           4 years ago
  • 2.6.1                                ...           5 years ago
  • 2.5.3                                ...           5 years ago
  • 2.3.3                                ...           5 years ago
  • 2.0.3-1                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 1.8.10                                ...           6 years ago
  • 1.7.5                                ...           6 years ago
  • 1.7.3                                ...           6 years ago
  • 1.6.2                                ...           7 years ago
  • 1.5.3-2                                ...           7 years ago
  • 1.5.3-1                                ...           7 years ago
  • 1.5.3                                ...           7 years ago
  • 1.4.1-3                                ...           7 years ago
  • 1.4.1-2                                ...           7 years ago
  • 1.4.1                                ...           7 years ago
  • 1.0.0-5                                ...           8 years ago
  • 1.0.0-4                                ...           8 years ago
  • 1.0.0-3                                ...           8 years ago
  • 1.0.0-2                                ...           8 years ago
  • 1.0.0-1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.9.7-1                                ...           8 years ago
  • 0.9.7                                ...           8 years ago
  • 0.9.5-4                                ...           8 years ago
  • 0.9.5-3                                ...           8 years ago
  • 0.9.5-2                                ...           8 years ago
  • 0.9.5-1                                ...           8 years ago
  • 0.9.5                                ...           8 years ago
Maintainers (1)
Dependencies (1)
Dev Dependencies (2)

Copyright © npmmirror.com | 浙ICP备15033595号-63 |