npm-create-component

1.0.5 • Public • Published

npm-create-component 🚀

A CLI tool to quickly generate React component files with associated CSS, supporting both JSX and TSX formats.

npm version license GitHub stars


🌟 Features

  • Simple CLI interface for adding React components.
  • Supports both JSX and TSX file extensions.
  • Automatically generates a CSS file alongside the component.
  • Ensures that the directory structure exists before creating files.
  • Modern ES6 syntax for components.

📦 Installation

To install the package globally, run:

npm install -g npm-create-component

You can use it directly with npx without installing globally:

npx c-c components/About.jsx

--- OR ---

npx create-component components/Home.jsx

--- OR ---

npx create-comp components/Home.tsx

Package Sidebar

Install

npm i npm-create-component

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • sanjayachari