A CLI tool for creating starter templates for npm packages using TypeScript or JavaScript, tailored to simplify package development.
- 📚 Table of Contents
- ✨ Features
- 💻 System Requirements
- 📥 Installation
- 🛠️ Usage
- ❓ FAQ
- 🐞 Troubleshooting
- 🤝 Contributing
- 📜 License
- 🔥 Quickly scaffold a new npm package project.
- 🎯 Select between TypeScript or JavaScript for your starter template.
- 🛠️ Generates a pre-configured
package.json
with the selected template. - 🧹 Sets up essential files for a clean and maintainable project structure.
- ✅ Includes basic configurations for linting and formatting.
- 🎉 Easy-to-use CLI for seamless setup and initialization.
- 📦 No need to install globally, just use with
npx
.
- Node.js: >= 18.20.1
- npm: >= 9.2.0
⚠️ Ensure these are installed on your system before using this tool.
You can install this package globally using npm to use the CLI tool directly in your terminal:
npm install -g @ToolsHive/Create-NPM-Package
To create a new npm package starter template, run the following command:
npx @ToolsHive/Create-NPM-Package
Q: Do I need to install this package globally?
A: No, you can use it directly with npx
, so there’s no need for a global installation.
Q: Does this tool support both JavaScript and TypeScript?
A: Yes, during setup, you can choose between TypeScript or JavaScript for your project.
-
🚫 Error: "Command not found"
Ensure you have Node.js and npm installed. Runnode -v
andnpm -v
to check. -
🔒 Permissions Error on Installation
Usesudo
for global installations:sudo npm install -g @ToolsHive/Create-NPM-Package
-
💻 Installation Issues on Windows Use PowerShell or Command Prompt with administrative rights.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.
This project is licensed under the MIT License. See the LICENSE file for details.