New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-react-readme

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-react-readme

Generate readme.md from your react library

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

create-react-readme

npm_version license

Generate readme.md from your react library

  • Installation
  • Usage
  • CLI API

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.

FAQs

Package last updated on 25 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts