feature-hub
v1.16.0
Published
Feature-based CLI tool to install backend features easily like auth, cron-job, file-upload, etc.
Maintainers
Keywords
Readme
📦 feature-hub
A simple CLI tool to quickly install ready-made features (like auth, cron-jobs, payment, file-upload, etc.) into your Node.js projects 🚀
✨ Features
- Install prebuilt feature templates into your project
- Auto install required npm packages
- Auto update your
.envfile with necessary environment variables - Supports npm, yarn, and pnpm package managers
- Easy and fast to use
🛠️ Installation
# Install globally
npm install -g feature-hubor you can use it directly without installation:
npx feature-hub⚡️ Usage
Install a feature into your project
feature-hub install <feature-name>or simply
feature-hub i <feature-name>You will be asked where you want to install the feature.
Just provide the folder path (example: src/features) and it will be installed there ✅
📜 Example
Install auth feature
feature-hub i authOR with npx:
npx feature-hub i authYou will see:
✅ Where do you want to install "auth"? Provide the path:
> src/featuresDone!
It will:
- Copy the
authfolder - Install all required npm packages
- Add environment variables to
.envfile
📚 Available Features
| Feature Name | Description |
|--------------|-----------------------|
| auth | Authentication system |
| cron-job | Cron job scheduling |
| file-upload| File upload handling |
| payment | Payment system |
| queue | Queue system setup |
| redis | Redis setup |
| payments | Payment integration |
(✅ More features coming soon...)
🔥 Commands Quick Reference
| Command | Description |
|---------|-------------|
| feature-hub install <feature> | Install a feature |
| feature-hub i <feature> | Short version to install |
| npx feature-hub i <feature> | Use directly without installing globally |
⚡ Example Session
npx feature-hub i auth
✅ Where do you want to install "auth"? Provide the path:
> src/modules
✅ Successfully installed "auth" at /your/project/src/modules/auth
✅ Required packages installed by npm👌 Contribution
Feel free to open an issue or submit a pull request if you want to improve this CLI tool!
📔 License
MIT License
