@wertarbyte/react-props-md-table
Version:
A markdown table generator for React component props.
19 lines (14 loc) • 423 B
Markdown
# react-props-md-table
This tiny tool uses [react-docgen][] to generate markdown tables of the props of a React component.
[react-docgen]: https://github.com/reactjs/react-docgen
## Installation
```
npm i -g @wertarbyte/react-props-md-table`
```
## Usage
```
props-table [-p] path/to/SomeComponent.js
```
| Option | Description |
|--------|--------------------------|
| `-p` | Pretty-print the output. |