3.0.5 • Published 5 years ago

@rianbotha/react-props-md-table v3.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-props-md-table

This tiny tool uses react-docgen to generate markdown tables of the props of a React component.

Installation

npm i -g @rianbotha/react-props-md-table

Usage

Run the following command in the terminal to replace the props table in readme.md in the same directory.

props-table path/to/SomeComponent.js

The props table in the file needs to be wrapped between <!-- props-table-start --> and <!-- props-table-end --> for the replacement to work.

Options

  • --to-console will write the props table to the terminal instead of the file.
  • --force will write the props table at the end of the readme if no table wrapped by comments is found. The readme.md will be created if it doesn't exist.
  • --help or -h display usage options
  • --version or -v display version information
3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago