@rianbotha/react-doc-md
A markdown readme generator for React components.
Last updated 2 months ago by rianbotha .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @rianbotha/react-doc-md 
SYNC missed versions from official npm registry.

react-doc-md

npm version Known Vulnerabilities

Generate readme.md files for React components using react-docgen.

Installation

npm i -g @rianbotha/react-doc-md

Usage

Run the following command in the terminal to replace or create a readme.md in the same directory.

doc-md path/to/index.js path

The first argument is the path to the file containing your React component(s) or a glob. It can be a comma separated list.

Note: Globs needs to be wrapped in quotes.

The second argument is the base path from which the import path will be calculated.

If the file is named index.js the readme.md will be name readme.md. Otherwise the readme will be name filename.md to match your file.

The documentation needs to be wrapped between <!-- doc-md-start --> and <!-- doc-md-end --> for the replacement to work.

Options

  • --ignore A filename or glob to exclude. You can comma separate a list. Make sure to wrap globs in quotes.
  • --to-console will write the props table to the terminal instead of the file.
  • --force Overwrite the current readme if it exists and start and end comments are missing.
  • --help or -h display usage options
  • --version or -v display version information

Current Tags

  • 1.3.1                                ...           latest (2 months ago)

16 Versions

  • 1.3.1                                ...           2 months ago
  • 1.3.0                                ...           2 months ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |