create-react-readme

1.0.7 • Public • Published

create-react-readme

npm_version license

Generate readme.md from your react library

See on NPM

Install

With NPM

npm i create-react-readme

With Yarn

yarn add create-react-readme

Globally

npm i create-react-readme -g

You also can use it with npx without installing

npx create-react-readme

Usage

npm run create-react-readme ./package.json ./src/components/ ./readme.md -s ./setup_readme.md -u ./usage_readme.md -d ./dev_readme.md

You should create a script on your package.json file like so:

{
  ...
  scripts:{
    ...
    create-readme : "yarn create-react-readme ./package.json ./src/components/ ./readme.md -s ./setup_readme.md -u ./usage_readme.md -d ./dev_readme.md"
  }
}

So you can simply call it that way :

npm run create-readme

CLI API

Usage: create-react-readme <pkg> <dir> <output> [options]

Arguments:

  • pkg : The package.json file for info extraction
  • src : The directory containing the components
  • output : The path and name of the output file

Options:

  -h, --help                      output usage information
  -V, --version                   output the version number
  -x, --extensions <items>        Include only these file extensions. Default: js,jsx
  -i, --ignore <items>            Folders to ignore. Default: node_modules,__tests__,__mocks__
  -e, --exclude-patterns <items>  Filename patterns to exclude. Default: []
  -t, --template <file>           Handlebars template file for generating the readme file. If not specified it will use the default template.
  -s, --setup <file>		  Markdown file to include into 'Installation' section.
  -u, --usage <file>		  Markdown file to include into 'Usage' section.
  -d, --dev <file>		  Markdown file to include into 'Developers' section.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    1
    • latest

Version History

Package Sidebar

Install

npm i create-react-readme

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

12.4 kB

Total Files

8

Last publish

Collaborators

  • kevincastejon