koinos-ts-structure-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

TypeScript Structural 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.

Installation

npm install ts-structure-parser --save

Usage

import tsstruct=require("ts-structure-parser")

var filePath=path.resolve(path.resolve(__dirname,"src/"),"typescript-file.ts");
var decls=fs.readFileSync(filePath).toString();
var jsonStructure=tsstruct.parseStruct(decls,{},filePath);

Package Sidebar

Install

npm i koinos-ts-structure-parser

Weekly Downloads

8

Version

0.1.1

License

Apache-2.0

Unpacked Size

108 kB

Total Files

31

Last publish

Collaborators

  • joticajulian