Newly Potted Mandrakes

    ts-file-parser

    0.0.21 • Public • Published

    TypeScript File Parser

    Build Status

    This repository provides a parser for *.ts files. It parses the structure of a file and provides JSON object that contains its declaration.

    Usage

    import tsFileStruct = require("ts-file-parser")
    
    var filePath = "./src/typescript-file.ts";
    var decls = fs.readFileSync(filePath).toString();
    var jsonStructure = tsFileStruct.parseStruct(decls, {}, filePath);

    Install

    npm i ts-file-parser

    DownloadsWeekly Downloads

    1,077

    Version

    0.0.21

    License

    Apache-2.0

    Unpacked Size

    136 kB

    Total Files

    29

    Last publish

    Collaborators

    • softmedialab