gitignore-generator-node v0.5.0
Gitignore Generator
Node based gitignore generator using gitignore.io
Published to NPM
Features
Update and make custom aliases for specific gitignore generations
Auto generate a gitignore for your current directory based on aliases
How to use me
Install it from npm
npm i -g gitignore-generator-node
Once installed globally it will be available from the command line as gig
For help on what options can be based to gig
gig --help
gitignore generator cli tool
Usage
$ foo [Input] [Option]
Options
--generate, -g Generate a .gitignore
--list, -l List all alias
--make, -m make a new alias
--update, -u update an alias
--help, Displays the help menu
Examples
$ gig --generate mj
$ gig --list
$ gig --make
$ gig --update mj
$ gig --help
Testing
Currently there are no tests, they may come later, or you can add them yourself
Customization
Currently there are two types of logging
info
error
By default the info log is limegreen (#32CD32) and the error log is magenta (#FF00FF) these can be changed by setting the following environment variables with a corresponding hex value
export GIG_INFO_COLOUR=#fff
export GIG_ERROR_COLOUR=#fff
To change the default location for where the .gig.json db file gets stored an environment variable can be set to change this
export GIG_DB_LOCATION='/tmp/test'