Skip to content

Structural Parser for Typescript files, provides JSON object with a declarations structures

License

Notifications You must be signed in to change notification settings

M-a-c-Carter/ts-structure-parser

 
 

Repository files navigation

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);

About

Structural Parser for Typescript files, provides JSON object with a declarations structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.5%
  • JavaScript 2.5%