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.jsonwith 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
You can install this package globally using npm to use the CLI tool directly in your terminal:
npm install -g @toolshive/create-npm-packageTo create a new npm package starter template, run the following command:
npx @toolshive/create-npm-packageThis will prompt you to select whether you want to use TypeScript or JavaScript for your project.
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 -vandnpm -vto check. -
🔒 Permissions Error on Installation
Usesudofor 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.