Skip to content

A CLI tool for creating starter templates for npm packages using TypeScript or JavaScript, tailored to simplify package development.

License

Notifications You must be signed in to change notification settings

ToolsHive/Create-NPM-Package

Create NPM Package 🚀


Commitizen friendly CodeQL Security Analysis Dependabot Updates GitHub last commit Windows Linux macOS GitHub code-size Open Source Love

A CLI tool for creating starter templates for npm packages using TypeScript or JavaScript, tailored to simplify package development.

📚 Table of Contents

✨ Features

  • 🔥 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.

💻 System Requirements

  • Node.js: >= 18.20.1
  • npm: >= 9.2.0

⚠️ Ensure these are installed on your system before using this tool.

📥 Installation

You can install this package globally using npm to use the CLI tool directly in your terminal:

npm install -g @ToolsHive/Create-NPM-Package

🛠️ Usage

To create a new npm package starter template, run the following command:

npx @ToolsHive/Create-NPM-Package

❓ FAQ

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.

🐞 Troubleshooting

  • 🚫 Error: "Command not found"
    Ensure you have Node.js and npm installed. Run node -v and npm -v to check.

  • 🔒 Permissions Error on Installation
    Use sudo for global installations:

    sudo npm install -g @ToolsHive/Create-NPM-Package
  • 💻 Installation Issues on Windows Use PowerShell or Command Prompt with administrative rights.

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A CLI tool for creating starter templates for npm packages using TypeScript or JavaScript, tailored to simplify package development.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published