giv-gitignore
v1.0.2
Published
A library to generate a .gitignore file if it doesn't exist
Downloads
26
Readme
giv-gitignore
A simple Node.js package to automatically generate a .gitignore file if one doesn't already exist. Perfect for quickly setting up new repositories or environments where you might forget to add the .gitignore file!
Features
- Automatically generates a default
.gitignorefile if one doesn't exist. - Saves you time by avoiding the manual creation of
.gitignorefile for common environments like Node.js, Next.js, etc. - Works out of the box without additional configuration.
Installation
Install giv-ignor globally or locally in your project.
Global Installation
To install globally, run:
npm install -g giv-gitignoreOnce installed globally, you can run it from anywhere in your terminal.
Local Installation
To install locally in your project, run:
npm install giv-gitignoreUsage
To use giv-ignor, you can add the following code to your root file:
const generateGitFile = require('giv-gitignore');
generateGitFile();Once you run this, it will automatically generate a .gitignore file if one doesn't already exist in your project root.
License
MIT License - see the LICENSE file for details.
