Socket
Socket
Sign inDemoInstall

reactjs-component-creator

Package Overview
Dependencies
95
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    reactjs-component-creator

A CLI generator for react component


Version published
Maintainers
1
Install size
11.0 MB
Created

Readme

Source

react-

A CLI generator for Reactjs components

Install

$ npm install -g reactjs-component-creator

Usage

The most basic command runs a wizard to create a component.

$ rc

Note: Names can be inputted in any format (slug-case, camelCase, PascalCase etc.).

component

Directly create a component based on the current settings.

$ rc component <name>

Arguments:

  • name: The name you want to use for the component.

Options:

  • -d, --destination <destination>: Override the destination for component.
  • -p, --template-path <template-path>: Override template path.
  • -t, --template <template>: Override template type. By default it uses the 'component' folder from the template path. With this option you can use a different template folder.
  • -f, --force: Force creation of a component. By default it's impossible to create a component if the destination path doesn't exist. This option forces the creation of a component and will generates the destination folders if they don't exist.

Examples:

$ rc component check-box
$ rc component RadioButton -d ./components/ui
$ rc component videoPlayer -d ./src/components/players/ -t base-video-component -f

The generated file will be *

FAQs

Last updated on 11 Mar 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc