0.7.0 • Published 1 year ago

gitignore v0.7.0

Weekly downloads
2,784
License
MIT
Repository
github
Last release
1 year ago

gitignore

Automatically fetch github's excellent .gitignore files for any of your new projects

Here is the list of available types

Use as a global utility

Install

npm install gitignore -g

Note: If NPX (NPM's official package runner) is available in your environment you can use it to avoid a global install: ex. $ npx gitignore node is equivalent to npm i -g gitignore && gitignore node but avoids the global install step

Usage

To list out all of the available types:

gitignore -types

To create a .gitignore for rails:

gitignore rails

That's it.

Use programmatically as a module

Install

npm install gitignore

and require

var gi = require(`gitignore`);

API

.getTypes(callback)

Gets the types via https request to GitHub.

callback(err, types)

If an error occurred, or the request failed, an Error object is passed as the first parameter. If the types were successfully requested, an array of types is passed as the second parameter with null as the first.

.writeFile(options, callback)

Gets the .gitignore file from GitHub of the specified options.type and stores it in the writable stream at options.file or options.writable.

options

.type (string) - The type associated with the .gitignore file to be fetched .file, .writable (writable stream) - A writable stream (a file, sdtout, etc) that the results should be written to

callback(err)

If an error occurred or the request did not go through, an error obect is passed as the first parameter. If the request was successful, the first parameter is null or undefined.

create-blitz-project@keanucode/initprj@atao60/dummy-cli-starter-kitam-templator@vexcited/create-nodepress-app@sharksv/hycli@xfxstudios/create-hitcel-app@anjulalk/express-starter@xfxstudios/create-template-appalireza-cli-finalalireza-cli-final2@yderana/xerador@yfujii01/nodecli1@cws.ltd/windup@stackql/provider-doc-utilinit-ts-project@felipecastillo/create-template@etherx/server-spinner@ernandes/create-project@easyv/chartsdroplabmods@visuals3d/vis3d@uxoctopus/cli@velovsky/create-cs-react@waldronmatt/bowmanbuild-react-npmcopancs-microservice-teemplatecopancs-microservice-templatecreate-new-projectcreate-nucleum-projectcreate-vortex-extensioncreate-contentful-gatsbycreate-devstartercreate-coutloot-projectcreate-projectaaahcreate-pig-projectcreate-twilio-functioncreate-react-smoothcreate-react-smooth-appcreate-react-smooth-ssrcreate-react-ssrcreate-test-app-jatacreate-blockchain-dappcreate-bt-nextjs-agility-sitecreate-discordjs-projectcreate-hubspot-projectbase-express-app-starterbetter-npm-initboilerplate-generatebotgenastridtimana-md-links@reprex/create-project@stackql/openapi-doc-utilfe-boilerplates-createdx-scannerfm-create-react-appmake-express-appfuse-create-projectfree-codegithub_custom_modulegoopskia-clikreatkreat-appkreate-appintelligo-cliinitpkginkamiles-create-project@tkweb/ui-cli@salihu/create-project@siddiqus/expressive-cli@supryantowp/create-bonext@swirlyleopard/creatable@sunil-icreon/create-projectapp-fordismnext-templatesmodern-node-starternodejinpersonal-page@abdulmoeedsaleem/boiler-platexgn@akshaysingla90/my-app-cli@anishpras/create-portfolio@appeel.io/create-project@andreamonroy/md-links@avernusx/app-front-create@avenham/create-service@azteam/cli@albanasaliu/pg-adapter@albanasaliu/redis-adapter@atao60/create-projectwengitwhs_spotify_wrapperstart-tasksunil-icreonv-react-clitypescript-express-startertsbots-express-starter
0.7.0

1 year ago

0.6.0

6 years ago

0.5.0

7 years ago

0.3.0

7 years ago

0.4.0

7 years ago

0.2.0

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago