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 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-gitnore

v1.0.2

Published

Create .gitignore default file from github/gitignore

Readme

create-gitnore

Quickly generate .gitignore files from GitHub's official gitignore templates

A simple CLI tool that downloads .gitignore templates from the official github/gitignore repository and saves them to your project directory. No need to manually copy-paste or remember which files to ignore for your project type!

Features

  • 🚀 Fast & Simple - One command to generate your .gitignore file
  • 📦 Zero Configuration - Works out of the box with npx
  • 🎯 Official Templates - Uses GitHub's curated gitignore templates
  • 🔄 Automatic Formatting - Smart name formatting (e.g., nodeNode.gitignore, word-pressWordPress.gitignore)
  • Multiple Package Managers - Works with npm and yarn

Installation

No installation required! Use npx to run it directly:

npx create-gitnore [template-name]

Or with yarn:

yarn create gitnore [template-name]

Global Installation (Optional)

If you prefer to install it globally:

npm install -g create-gitnore
# Then use it directly
create-gitnore [template-name]

Usage

Basic Usage

npx create-gitnore [template-name]

Where [template-name] is the name of any template from the github/gitignore repository.

Examples

Node.js Project:

npx create-gitnore node
# or
yarn create gitnore node

Python Project:

npx create-gitnore python

React Project:

npx create-gitnore node

WordPress Project:

npx create-gitnore wordpress
# or (case-insensitive with auto-formatting)
npx create-gitnore word-press

Go Project:

npx create-gitnore go

Java Project:

npx create-gitnore java

Visual Studio:

npx create-gitnore visualstudio

Available Templates

This tool uses templates from github/gitignore. Popular templates include:

  • Languages: Node, Python, Java, Go, Ruby, Rust, C, C++, C#, Swift, Kotlin, etc.
  • Frameworks: Rails, Django, Laravel, etc.
  • IDEs: VisualStudio, VisualStudioCode, IntelliJ, Eclipse, Xcode, etc.
  • CMS: WordPress, Joomla, Drupal, etc.
  • Other: macOS, Windows, Linux, Archives, etc.

To see all available templates, visit github/gitignore.

How It Works

  1. You provide a template name (e.g., node)
  2. The tool formats the name to match GitHub's naming convention (e.g., Node.gitignore)
  3. Downloads the corresponding template from https://raw.githubusercontent.com/github/gitignore/master/[TemplateName].gitignore
  4. Saves it as .gitignore in your current directory

Troubleshooting

Template Not Found

If you get a "Not Found" error:

  • Check the template name at github/gitignore
  • Template names are case-sensitive after formatting
  • Try variations: node, Node, or nodejs

File Already Exists

This tool will overwrite your existing .gitignore file. Make sure to back it up if you have custom rules!

Tips

  • Combine Multiple Templates: Generate one template, then manually add rules from other templates as needed
  • Customize After Generation: The generated file is a starting point - feel free to add project-specific rules
  • Version Control: Always review the generated .gitignore before committing to ensure it fits your needs

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

ISC

Links


Made with ❤️ by mwafa