
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
git-collector
Advanced tools
Interactively browse a GitHub repository, select files or directories, and collect their contents into a Markdown data file
Git Collector is a command-line tool that lets you interactively browse a GitHub repository, select files or directories, and collect their contents into a Markdown data file. It's useful for gathering code snippets, configuration files, or other resources from a repository for offline use or documentation, especially for sharing with an AI assistant.

Install the published package globally with pnpm:
pnpm add -g git-collector
# or with npm:
npm install --global git-collector
# or with Yarn:
yarn global add git-collector
After installation, you can invoke:
git-collector <dest.md>
First, clone this repository and install dependencies:
git clone <repo-url>
cd git-collector
# Install dependencies (choose one)
pnpm install
# or
npm install
# or
yarn install
To make the git-collector command available system-wide:
pnpm link --global
npm link
yarn link
Once linked, you can run the command globally:
git-collector <dest.md>
git-collector [--update] [--force] <destination>
<destination>: Path to the Markdown data file to create or update. In update mode, this may instead be a directory containing Git Collector data files.--update: Update files and then exit (no interactive UX), if the destination exists:
# Git Collector Data) and update each in turn.--force, -f: When used with --update, always rewrite the data file(s), updating timestamps even if there are no content changes.git-collector data.md
https://github.com/user/repo).<↑>/<↓>: Navigate the file tree<←>/<→>: Expand or collapse directories<PgUp>/<PgDn>: Page-scroll<space>: Select or deselect a file or directory<enter>: Preview the selected file<tab>: Switch focus between tree and preview<s>: Save selections to the data file<x>: Save and exit<q>: Quit without saving<w>: Toggle word-wrap in preview (when focused on preview)git-collector --update data.md
data.md and fetches current contents, reporting how many files were updated or removed, without invoking the interactive UI.--force option can be used to rewrite the data file even if there are no content changes.git-collector --update data/
# Git Collector Data) and updates each in turn.--force option can be used to rewrite the data files even if there are no content changes.You can run the CLI directly or via your package manager without linking globally:
# Directly with Node.js
node bin/cli.js data.md
# pnpm
pnpm exec git-collector data.md
# npm
npm start -- data.md
# Yarn
yarn start -- data.md
pnpm test
# or
npm test
# or
yarn test
FAQs
Interactively browse a GitHub repository, select files or directories, and collect their contents into a Markdown data file
The npm package git-collector receives a total of 2 weekly downloads. As such, git-collector popularity was classified as not popular.
We found that git-collector demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.