tsmd

Rust

generate markdown tables from TypeScript interfaces

Status

Hobby project in early development for auto-generating docs for TypeScript files.

Todos

Installation & Guide

```shell cargo install tsmd

```

Running the following command will create ./input.md and fill it with markdown tables according to the interfaces in ./input.ts.

```shell tsmd -s ./input.ts

```

When ./input.ts looks like this,

```typescript export interface Output> { id: string; timestamp: string; data: Omit; }

export interface LowLevelAsset { filename?: string; filenames?: string[]; data: D; }

```

./input.md will look like the following.

```md

Output

| Field | Type | | --- | --- | | timestamp | string | | id | string | | data | Omit<A, ""> |

LowLevelAsset

| Field | Type | | --- | --- | | filenames? | string[] | | filename? | string | | data | D | ```