npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bootstrap-project-cli

v1.0.0

Published

The Bootstrap Project CLI is a command-line interface tool that helps you quickly bootstrap new projects with customizable templates and with options to customize your project.

Downloads

1

Readme

Bootstrap Project CLI

The Bootstrap Project CLI is a command-line interface tool to help you quickly bootstrap new projects with customizable templates.

Summary

Installation

Prerequisites

You need to have node and npm installed on your machine so make sure to check if it's installed by running :

node -v
npm -v

You can install the Bootstrap Project CLI globally using npm:

npm install -g bootstrap-project-cli

Or just locally :

npm install bootstrap-project-cli

Usage

To create a new project, run the following command:

bootstrap-project <project-name>

Or just run:

bootstrap-project

To have a help for each steps (with a real wizard 🧙‍♂️), this will let you choose your template, your dependencies.

Template

The Bootstrap Project CLI provides several project templates to choose from :

  • browser: A template for browser-based projects using vanilla JavaScript and HTML
  • javascript: A template for Node.js projects using JavaScript
  • typescript: A template for Node.js projects using TypeScript

To choose a template, pass the --template flag followed by the name of the template you want to use. The default template is javascript.

Possible options

You can also pass additional options to customize your project using flags :

  • --git : Initialize a Git repository
  • --husky : Initialize Husky Git hooks
  • --prettier : Initialize Prettier code formatter
  • --eslint : Initialize Eslint Javascript linter
  • --template : Choose a project template. The default is JavaScript.
  • --yes : Skip prompts and use default options

Example

For example, to create a new TypeScript project with Git and Husky, you can run :

bootstrap-project my-typescript-project --git --husky --template typescript

Or just run:

bootstrap-project

And you can choose typescript for the template, git and husky in the helping wizard 🧙‍♂️.

Contributing

Contributions are welcome ! If you want to contribute, please follow these steps:

  1. Fork the repository
  2. Clone the repository to your local machine
  3. Create a new branch for your changes
  4. Make your changes and commit them
  5. Push your changes to your fork
  6. Submit a pull request

Please make sure your code follows the existing coding style before submitting a pull request.

License

This project is licensed under the MIT License.