{"_id":"@chengyixu/gitignore-gen","name":"@chengyixu/gitignore-gen","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@chengyixu/gitignore-gen","version":"1.0.0","description":"Generate .gitignore files from GitHub templates. Supports multiple languages, auto-detection, and local caching.","main":"dist/index.js","bin":{"gitignore-gen":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js","prepublishOnly":"npm run build"},"keywords":["gitignore","generator","cli","templates","node","python","react","git","ignore","scaffold","project-setup","developer-tools"],"author":{"name":"chengyixu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chengyixu/gitignore-gen.git"},"engines":{"node":">=16"},"dependencies":{"chalk":"^4.1.2","commander":"^11.1.0"},"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.0"},"types":"./dist/index.d.ts","_id":"@chengyixu/gitignore-gen@1.0.0","bugs":{"url":"https://github.com/chengyixu/gitignore-gen/issues"},"homepage":"https://github.com/chengyixu/gitignore-gen#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-9sZrWowfHjHu5LJzU9KgHjQlXDu015Ip7XkRK6/jrZVPaogF5izaSjii5pyZIve/nxtSWYR9QFS/BjK8XMT8Kw==","shasum":"ea27957f7623a63e90e4b63d09a1be192ec7c505","tarball":"https://registry.npmjs.org/@chengyixu/gitignore-gen/-/gitignore-gen-1.0.0.tgz","fileCount":10,"unpackedSize":55302,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDhcPl9dj7HZKe2tF+98aGtYIJOjtD0g50b3F2BXmDJrgIgey2Lr7v6ay8Xd6IS82V/bnq0iLW3hp9tBwRVit1hPoQ="}]},"_npmUser":{"name":"chengyixu","email":"Chengyi_xu@outlook.com"},"directories":{},"maintainers":[{"name":"chengyixu","email":"Chengyi_xu@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gitignore-gen_1.0.0_1773904130223_0.8315711466932512"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-19T07:08:50.101Z","1.0.0":"2026-03-19T07:08:50.370Z","modified":"2026-03-19T07:08:50.570Z"},"maintainers":[{"name":"chengyixu","email":"Chengyi_xu@outlook.com"}],"description":"Generate .gitignore files from GitHub templates. Supports multiple languages, auto-detection, and local caching.","homepage":"https://github.com/chengyixu/gitignore-gen#readme","keywords":["gitignore","generator","cli","templates","node","python","react","git","ignore","scaffold","project-setup","developer-tools"],"repository":{"type":"git","url":"git+https://github.com/chengyixu/gitignore-gen.git"},"author":{"name":"chengyixu"},"bugs":{"url":"https://github.com/chengyixu/gitignore-gen/issues"},"license":"MIT","readme":"# gitignore-gen\n\nGenerate `.gitignore` files from GitHub's official templates. Supports 155+ languages and frameworks, multi-language projects, auto-detection, and local caching.\n\n## Install\n\n```bash\nnpm install -g gitignore-gen\n```\n\n## Usage\n\n### Generate for a single language\n\n```bash\ngitignore-gen node\ngitignore-gen python\ngitignore-gen rust\n```\n\n### Combine multiple templates\n\n```bash\ngitignore-gen node python react\n```\n\nDuplicate rules are automatically deduplicated.\n\n### Auto-detect project type\n\n```bash\ngitignore-gen --init\n```\n\nScans your project directory for `package.json`, `requirements.txt`, `go.mod`, `Cargo.toml`, etc. and generates the right `.gitignore` automatically.\n\n### List all available templates\n\n```bash\ngitignore-gen --list\n```\n\n### Write directly to file\n\n```bash\n# Write to .gitignore\ngitignore-gen node --write\n\n# Write to custom path\ngitignore-gen node -o .gitignore.backup\n\n# Append to existing .gitignore\ngitignore-gen python --write --append\n```\n\n### Bypass cache\n\n```bash\ngitignore-gen node --no-cache\n```\n\n## Supported Aliases\n\nUse friendly names instead of exact GitHub template names:\n\n| Alias | Template |\n|-------|----------|\n| `node`, `js`, `javascript`, `ts`, `typescript` | Node |\n| `python`, `py`, `django`, `flask` | Python |\n| `react`, `vue`, `angular`, `nextjs` | Node |\n| `go`, `golang` | Go |\n| `rust` | Rust |\n| `java` | Java |\n| `ruby`, `rb` | Ruby |\n| `swift`, `ios`, `macos` | Swift |\n| `kotlin` | Kotlin |\n| `csharp`, `c#` | VisualStudio |\n| `cpp`, `c++` | C++ |\n| `dart`, `flutter` | Dart |\n| `php`, `laravel` | Laravel |\n| `tex`, `latex` | TeX |\n| `unity` | Unity |\n| `unreal` | UnrealEngine |\n| `android` | Android |\n| `terraform` | Terraform |\n\n...and many more. Partial matching is also supported.\n\n## Features\n\n- Fetches from GitHub's official gitignore API (155+ templates)\n- Bundled fallback templates for offline use\n- 24-hour local cache for speed\n- Smart alias resolution (e.g., `js` -> Node, `py` -> Python)\n- Multi-template merging with deduplication\n- Project type auto-detection (`--init`)\n- Stdout by default, `--write` for file output\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-f9632012fd6985beda4b8864b79e6138"}