# koinos-ts-structure-parser

> [![Build Status](https://travis-ci.org/mulesoft-labs/ts-structure-parser.svg?branch=master)](https://travis-ci.org/mulesoft-labs/ts-structure-parser)

Latest version **0.1.1** (published 2023-08-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install koinos-ts-structure-parser
pnpm add koinos-ts-structure-parser
yarn add koinos-ts-structure-parser
bun add koinos-ts-structure-parser
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2023-08-14 |
| First published | 2023-02-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 105.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | joticajulian |
| Keywords | typescript, content, parser |

## Links

- npm: https://www.npmjs.com/package/koinos-ts-structure-parser
- Repository: https://github.com/mulesoft-labs/ts-structure-parser
- Issues: https://github.com/mulesoft-labs/ts-structure-parser/issues
- npm.io page: https://npm.io/package/koinos-ts-structure-parser

## Dependencies (3)

- [typescript](https://npm.io/package/typescript.md) 3.1.6
- [underscore](https://npm.io/package/underscore.md) ^1.13.6
- [ts-structure-model](https://npm.io/package/ts-structure-model.md) 0.0.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2023-08-14
- 0.1.0 — 2023-08-14
- 0.0.21 — 2023-08-11
- 0.0.20 — 2023-02-26

## README

# TypeScript Structural Parser

[![Build Status](https://travis-ci.org/mulesoft-labs/ts-structure-parser.svg?branch=master)](https://travis-ci.org/mulesoft-labs/ts-structure-parser)

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

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

---
_Source: https://npm.io/package/koinos-ts-structure-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
