react-cli-toolkit

1.0.13 • Public • Published

React CLI Toolkit 🛠️

Lightweight Dependency Free Easy to Use

react-cli-toolkit is a small, lightweight and dependency-free CLI tool that helps you create routes for your React app in a single command! ⚡

Watch Tutorial on Youtube

🚀 Features

  • Zero dependencies
  • Automatic route creation
  • React Router DOM integration
  • CSS file generation
  • Global or project-level installation
  • Automatic App.jsx updates

📦 Installation & Usage

Method 1: Project Installation (Recommended)

Step 1: Install as dev dependency

npm install -D react-cli-toolkit

Step 2: Add this into package.json scripts

"scripts": {
"page": "reactcli"
},

Step 3: Create routes with npm

npm run page <route>
# example
npm run page home

Method 2: Global Installation

# Step 1: Install globally
npm install -g react-cli-toolkit

Step 2: Use anywhere

reactcli <route>

🎯 Example

npm run page home

This will create:

src/pages/Home/
├── Home.jsx
└── Home.css

Bonus: If you haven't installed react-router-dom, it will automatically:

  1. Install the package
  2. Update your App.jsx with the new route

👨‍💻 Author

Built with 💙 by Saumya Sarma


MIT License — Free for personal and commercial use.

Package Sidebar

Install

npm i react-cli-toolkit

Weekly Downloads

27

Version

1.0.13

License

ISC

Unpacked Size

5.79 kB

Total Files

7

Last publish

Collaborators

  • saumya-sarma