New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-component

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-component

I tend to write my React components like this:

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

Bootstrap a new React component!

I tend to write my React components like this:

src/
  components/
    component-name/
      index.js
      ComponentName.md

The index.js file simply works as a proxy for the component, so that you can import it like this:

import ComponentName from './components/component-name';

If you do the same, then you'll love this script!

Usage

I recommend you to install this globally (but you don't have to if you don't want to):

npm install -g bootstrap-component
yarn global add bootstrap-component

Run this script from your project's root folder like this:

$ comp my-component

If you don't provide a component name, you'll be asked to provide it. You can case it as you want, this script uses case in order to figure it out :)

This will bootstrap a new component, complete with index.js file and ready to be coded.

Have a feature request? Found a bug?

Please create an issue - or if you're up for it, a pull request.

Keywords

FAQs

Package last updated on 19 Dec 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc