{"_id":"@aoligie/gitlab-search","_rev":"5-02657e1127011710be6ac512c0e68ad7","name":"@aoligie/gitlab-search","dist-tags":{"latest":"1.5.4"},"versions":{"1.5.0":{"name":"@aoligie/gitlab-search","version":"1.5.0","keywords":["GitLab","search","cli","typescript"],"author":{"name":"EightHundreds"},"license":"MIT","_id":"@aoligie/gitlab-search@1.5.0","maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"homepage":"https://github.com/eightHundreds/gitlab-search#readme","bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"bin":{"gitlab-search":"bin/gitlab-search.js"},"dist":{"shasum":"4469b8b5b2e5adca9e2113134b80c589105af797","tarball":"https://registry.npmjs.org/@aoligie/gitlab-search/-/gitlab-search-1.5.0.tgz","fileCount":28,"integrity":"sha512-6Ss5DoV6W/uN0fFlOUczQvwi/FI6GDBil+TzJhHepVgQjJ6tGtlEAi0cgFZkG0s2ikfFOr8U+epzdDMcvakbZg==","signatures":[{"sig":"MEYCIQCXxF2X1rzlEfoQKR3PsiXFpNdvQVzU427xcMTjzuZLGwIhAMHgHAJUDOcaOWhMRNsMoaar2eBYe7apSgr2Fv1uKTgz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37974},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"feec83bb460c92cd4af6a59a1ac12572b59a7b82","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","build":"rimraf dist && tsc","clean":"rimraf dist","start":"node dist/index.js","lint:fix":"eslint src/**/*.ts --fix","prepublish":"pnpm run build"},"_npmUser":{"name":"aoligiegie","email":"mingoing@outlook.com"},"repository":{"url":"git+https://github.com/eightHundreds/gitlab-search.git","type":"git"},"_npmVersion":"10.8.2","description":"Command line tool to search for contents across all your GitLab repositories","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rc":"^1.2.8","axios":"^1.6.0","chalk":"^4.1.2","commander":"^11.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","@types/rc":"^1.2.1","typescript":"^5.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gitlab-search_1.5.0_1748501573147_0.2865844434687874","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@aoligie/gitlab-search","version":"1.5.1","keywords":["GitLab","search","cli","typescript"],"author":{"name":"EightHundreds"},"license":"MIT","_id":"@aoligie/gitlab-search@1.5.1","maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"homepage":"https://github.com/eightHundreds/gitlab-search#readme","bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"bin":{"gitlab-search":"bin/gitlab-search.js"},"dist":{"shasum":"391c75136df55bad12dd2546c99fb66f9284cd7c","tarball":"https://registry.npmjs.org/@aoligie/gitlab-search/-/gitlab-search-1.5.1.tgz","fileCount":28,"integrity":"sha512-IEo8RME4tBTjALtOO2hFMXIX8VWVJQNZczo1aU+2V4zcc7KUC+vZwn+8d1p/cLmP33AAVCiQiPqZ5WgRnbPsDg==","signatures":[{"sig":"MEUCIDJMUOc7MuQyH9O5ZcxN8ss6mGpIkRmUNVHVKCgmOBk9AiEAygwNB6xYcjCqEQhBEpjr/amZtw6XMaUEgea4+h/q++M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37974},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"feec83bb460c92cd4af6a59a1ac12572b59a7b82","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","build":"rimraf dist && tsc","clean":"rimraf dist","start":"node dist/index.js","lint:fix":"eslint src/**/*.ts --fix","prepublish":"pnpm run build"},"_npmUser":{"name":"aoligiegie","email":"mingoing@outlook.com"},"repository":{"url":"git+https://github.com/eightHundreds/gitlab-search.git","type":"git"},"_npmVersion":"10.8.2","description":"Command line tool to search for contents across all your GitLab repositories","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rc":"^1.2.8","axios":"^1.6.0","chalk":"^4.1.2","commander":"^11.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","@types/rc":"^1.2.1","typescript":"^5.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gitlab-search_1.5.1_1748501829648_0.1608008847556608","host":"s3://npm-registry-packages-npm-production"}},"1.5.2":{"name":"@aoligie/gitlab-search","version":"1.5.2","keywords":["GitLab","search","cli","typescript"],"author":{"name":"EightHundreds"},"license":"MIT","_id":"@aoligie/gitlab-search@1.5.2","maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"homepage":"https://github.com/eightHundreds/gitlab-search#readme","bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"bin":{"gitlab-search":"bin/gitlab-search.js"},"dist":{"shasum":"f7befe607e1cae1b8926ff72f5d537eb73660e92","tarball":"https://registry.npmjs.org/@aoligie/gitlab-search/-/gitlab-search-1.5.2.tgz","fileCount":28,"integrity":"sha512-h+tlTdlQDNdR7qYiRdcqKYqKgAVU9N0+MNgOmIrXfFZ/Srznv5ED69EEZZkyWDvCWQ3gAXcJkhRM5dL8yQXl2g==","signatures":[{"sig":"MEUCIDgr00zFxTcxwkFJZDxJBHN+jS5yJXl/mqkeFnXEC6nhAiEA1sy7irdEDUAE56DOJV4cS4QWYb8Bw9RCNHWaoF8wE04=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39991},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"feec83bb460c92cd4af6a59a1ac12572b59a7b82","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","build":"rimraf dist && tsc","clean":"rimraf dist","start":"node dist/index.js","lint:fix":"eslint src/**/*.ts --fix","prepublish":"pnpm run build","prepublishOnly":"pnpm run clean && pnpm run build"},"_npmUser":{"name":"aoligiegie","email":"mingoing@outlook.com"},"repository":{"url":"git+https://github.com/eightHundreds/gitlab-search.git","type":"git"},"_npmVersion":"10.8.2","description":"Command line tool to search for contents across all your GitLab repositories","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rc":"^1.2.8","axios":"^1.6.0","chalk":"^4.1.2","commander":"^11.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","@types/rc":"^1.2.1","typescript":"^5.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gitlab-search_1.5.2_1748501846128_0.7055958038265473","host":"s3://npm-registry-packages-npm-production"}},"1.5.3":{"name":"@aoligie/gitlab-search","version":"1.5.3","keywords":["GitLab","search","cli","typescript"],"author":{"name":"EightHundreds"},"license":"MIT","_id":"@aoligie/gitlab-search@1.5.3","maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"homepage":"https://github.com/eightHundreds/gitlab-search#readme","bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"bin":{"gitlab-search":"bin/gitlab-search.js"},"dist":{"shasum":"3bd32739a9cf10124e8c8d824bc6a9b40e6a8fd1","tarball":"https://registry.npmjs.org/@aoligie/gitlab-search/-/gitlab-search-1.5.3.tgz","fileCount":28,"integrity":"sha512-pMrOure70ZZ8PslA6QyiIYJ9JFuHCnCthGNxkZ+jVEU/azfSiPFihkoyezv4n6B9diM4ABjc+WD+D4xE5xUXTw==","signatures":[{"sig":"MEUCIQCR25ZywvWl88HIiR3l5L7XbPexdmNwABetmLqM7DRuHwIgV1K54yBwE42S/b+g22V0Smd5+YadmIFyJujGs2bQQYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40256},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16.0.0"},"gitHead":"3b984a532b51b4be4fc69f0c1b27dc4bb8de6224","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","build":"rimraf dist && tsc","clean":"rimraf dist","start":"node dist/index.js","lint:fix":"eslint src/**/*.ts --fix","prepublish":"pnpm run build","prepublishOnly":"pnpm run clean && pnpm run build"},"_npmUser":{"name":"aoligiegie","email":"mingoing@outlook.com"},"repository":{"url":"git+https://github.com/eightHundreds/gitlab-search.git","type":"git"},"_npmVersion":"10.8.2","description":"Command line tool to search for contents across all your GitLab repositories","directories":{},"_nodeVersion":"20.19.0","dependencies":{"rc":"^1.2.8","axios":"^1.6.0","chalk":"^4.1.2","commander":"^11.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","@types/rc":"^1.2.1","typescript":"^5.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gitlab-search_1.5.3_1748502132610_0.8843843377379703","host":"s3://npm-registry-packages-npm-production"}},"1.5.4":{"name":"@aoligie/gitlab-search","version":"1.5.4","description":"Command line tool to search for contents across all your GitLab repositories","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsc","dev":"tsc --watch","start":"node dist/index.js","clean":"rimraf dist","prepublish":"pnpm run build","lint":"eslint src/**/*.ts","lint:fix":"eslint src/**/*.ts --fix","prepublishOnly":"pnpm run clean && pnpm run build"},"keywords":["GitLab","search","cli","typescript"],"author":{"name":"EightHundreds"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/eightHundreds/gitlab-search.git"},"bin":{"gitlab-search":"bin/gitlab-search.js"},"dependencies":{"axios":"^1.6.0","chalk":"^4.1.2","commander":"^11.0.0","rc":"^1.2.8"},"devDependencies":{"@types/node":"^20.0.0","@types/rc":"^1.2.1","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","eslint":"^8.0.0","rimraf":"^5.0.0","tsx":"^4.19.4","typescript":"^5.0.0"},"engines":{"node":">=16.0.0"},"packageManager":"pnpm@8.0.0","_id":"@aoligie/gitlab-search@1.5.4","gitHead":"3b984a532b51b4be4fc69f0c1b27dc4bb8de6224","bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"homepage":"https://github.com/eightHundreds/gitlab-search#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-kuKfp42imLP/mYZCPCNBOfrP5Gk00r+LdJeVl/AsUfj7b9Z4KCp4wLpzj9I4pkkkxruhjN7HVuk369wfjXnY1A==","shasum":"f3f195d3a695d94e5775f71d219858b499093651","tarball":"https://registry.npmjs.org/@aoligie/gitlab-search/-/gitlab-search-1.5.4.tgz","fileCount":28,"unpackedSize":50082,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHFPsuo+oSWS2xF6OPhIBbJHDXipT261dUpnEe5UvVAKAiEA5toMnRO/Ar1xCwqwyoyt+HzmW5wGdz+WsZGVZ3gL0MM="}]},"_npmUser":{"name":"aoligiegie","email":"mingoing@outlook.com"},"directories":{},"maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gitlab-search_1.5.4_1748571200154_0.8195589524919431"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-29T06:52:53.035Z","modified":"2025-05-30T02:13:20.551Z","1.5.0":"2025-05-29T06:52:53.342Z","1.5.1":"2025-05-29T06:57:09.834Z","1.5.2":"2025-05-29T06:57:26.289Z","1.5.3":"2025-05-29T07:02:12.797Z","1.5.4":"2025-05-30T02:13:20.376Z"},"bugs":{"url":"https://github.com/eightHundreds/gitlab-search/issues"},"author":{"name":"EightHundreds"},"license":"MIT","homepage":"https://github.com/eightHundreds/gitlab-search#readme","keywords":["GitLab","search","cli","typescript"],"repository":{"type":"git","url":"git+https://github.com/eightHundreds/gitlab-search.git"},"description":"Command line tool to search for contents across all your GitLab repositories","maintainers":[{"name":"aoligiegie","email":"mingoing@outlook.com"}],"readme":"# GitLab Search ![CI Build Status](https://github.com/phillipj/gitlab-search/workflows/CI/badge.svg)\n\nThis is a command line tool that allows you to search for contents across all your GitLab repositories.\nThat's something GitLab doesn't provide out of the box for non-enterprise users, but is extremely valuable\nwhen needed.\n\n## Prerequisites\n\n1. Install [Node.js](https://nodejs.org)\n2. Create a [personal GitLab access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) with the `read_api` scope.\n\n## Installation\n\n```\n$ npm install -g gitlab-search\n```\n\nTo finish the installation you need to configure the personal access token you've created previously:\n\n```\n$ gitlab-search setup <your personal access token>\n```\n\nThat will create a `.gitlabsearchrc` file in the current directory. That configuration file can be placed\nin different places on your machine, valid locations are described in the [rc package's README](https://www.npmjs.com/package/rc#standards).\nYou can decide where that file is saved when invoking the setup command, see more details in its help:\n\n```\n$ gitlab-search setup --help\n```\n\n## Usage\n\nSearching through all the repositories you've got access to:\n\n```\n$ gitlab-search [options] [command] <search-term>\n\nOptions:\n  -V, --version                            output the version number\n  -g, --groups <group-names>               group(s) to find repositories in (separated with comma)\n  -f, --filename <filename>                only search for contents in given a file, glob matching with wildcards (*)\n  -e, --extension <file-extension>         only search for contents in files with given extension\n  -p, --path <path>                        only search in files in the given path\n  -a, --archive [all,only,exclude]         search only in archived projects, exclude archived projects, search in all projects (default is all)\n  -h, --help                               output usage information\n\nCommands:\n  setup [options] <personal-access-token>  create configuration file\n```\n\n## Use with Self-Managed GitLab\n\nTo search a self-hosted installation of GitLab, `setup` has options for, among other things, setting a custom domain:\n\n```\n$ gitlab-search setup --help\n\nUsage: setup [options] <personal-access-token>\n\ncreate configuration file\n\nOptions:\n  --ignore-ssl            ignore invalid SSL certificate from the GitLab API server\n  --api-domain <name>     domain name or root URL of GitLab API server,\n                          specify root URL (without trailing slash) to use HTTP instead of HTTPS (default: \"gitlab.com\")\n  --dir <path>            path to directory to save configuration file in (default: \".\")\n  --concurrency <number>  limit the amount of concurrent HTTPS requests sent to GitLab when searching,\n                          useful when *many* projects are hosted on a small GitLab instance\n                          to avoid overwhelming the instance resulting in 502 errors (default: 25)\n  -h, --help              display help for command\n```\n\n## Debugging\n\nIf something seems fishy or you're just curious what `gitlab-search` does under the hood, enabling debug logging helps:\n\n```\n$ DEBUG=1 gitlab-search here-is-my-search-term\nRequesting: GET https://gitlab.com/api/v4/groups?per_page=100\nUsing groups: name-of-group1, name-of-group2\nRequesting: GET https://gitlab.com/api/v4/groups/42/projects?per_page=100\nRequesting: GET https://gitlab.com/api/v4/groups/1337/projects?per_page=100\nUsing projects: hello-world, my-awesome-website.com\nRequesting: GET https://gitlab.com/api/v4/projects/666/search?scope=blobs&search=here-is-my-search-term\nRequesting: GET https://gitlab.com/api/v4/projects/999/search?scope=blobs&search=here-is-my-search-term\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}