
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
generate-gitignore
Advanced tools
Generate a .gitignore file from the command line when Generate's CLI is installed globally, or use as a plugin or sub-generator in your own generator to make it a continuous part of the build workflow when scaffolding out a new project.
Generate a .gitignore file from the command line when Generate's CLI is installed globally, or use as a plugin or sub-generator in your own generator to make it a continuous part of the build workflow when scaffolding out a new project.
(TOC generated by verb using markdown-toc)
Example
Templates are customizable and can be overridden.

Generate is a command line tool and developer framework for scaffolding out new GitHub projects using generators and tasks. Answers to prompts and the user's environment can be used to determine the templates, directories, files and contents to build. Support for gulp, base and assemble plugins, and much more.
For more information about Generate:
Installing the CLI
To run the gitignore generator from the command line, you'll need to install generate globally first. You can do that now with the following command:
$ npm install --global generate
This adds the gen command to your system path, allowing it to be run from any directory.
Install generate-gitignore
You may now install this module with the following command:
$ npm install --global generate-gitignore
You should now be able to run generate-gitignore with the following command:
$ gen gitignore
What will happen?
Running $ gen gitignore will run the generator's default task, which writes a .gitignore file to the current working directory, or the specified directory.
What you should see in the terminal
If completed successfully, you should see both starting and finished events in the terminal, like the following:
[00:44:21] starting ...
...
[00:44:22] finished ✔
If you do not see one or both of those events, please let us know about it.
To see a general help menu and available commands for Generate's CLI, run:
$ gen help
generate supports running multiple generators at once. Here is an example of a generator that works well with generate-gitignore.
Run generate-dest before this generator to prompt for the destination directory to use for generated files.
Example

Use generate-gitignore as a plugin in your own generator.
Install with npm:
$ npm install --save generate-gitignore
Inside your own generator:
module.exports = function(app) {
// register generate-gitignore as a plugin to add the gitignore
// task to your own generator
app.use(require('generate-gitignore'));
};
Programmatically run tasks from generate-gitignore.
module.exports = function(app) {
// adds the `gitignore` task to your generator
app.use(require('generate-gitignore'));
// run the `gitignore` task
app.task('default', 'gitignore');
};
Visit the generator docs to learn more about creating, installing, using and publishing generators.
The following instructions can be used to override settings in generate-gitignore. Visit the Generate documentation to learn about other ways to override defaults.
To customize the destination directory, install generate-dest globally, then in the command line prefix dest before any other generator names.
For example, the following will prompt you for the destination path to use, then pass the result to generate-gitignore:
$ gen dest gitignore
You can override a template by adding a template of the same name to the templates directory in user home. For example, to override the .gitignore template, add a template at the following path ~/generate/generate-gitignore/templates/.gitignore, where ~/ is the user-home directory that os.homedir() resolves to on your system.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on July 14, 2016.
FAQs
Generate any local or global .gitignore file from the github/gitignore repository. Use from the command line when Generate's CLI is installed globally, or use as a plugin or sub-generator in your own generator.
The npm package generate-gitignore receives a total of 163 weekly downloads. As such, generate-gitignore popularity was classified as not popular.
We found that generate-gitignore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.