
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
claudeignore
Advanced tools
A Claude Code PreToolUse hook that prevents Claude from reading files that match patterns in .claudeignore files, similar to how .gitignore works.
A Claude Code PreToolUse hook that prevents Claude from reading files that match patterns in .claudeignore files, similar to how .gitignore works.
.claudeignore files from the current directory up to the rootInstall globally to use across all projects:
npm install -g claudeignore
To update to the latest version:
npm update -g claudeignore
Run the init command in your project directory:
claude-ignore init
This will:
.claudeignore file if it doesn't exist.claude/settings.json with the necessary hook configuration.claude/settings.json already exists, it will show you the template configuration for manual merging.claudeignore file in your project root with patterns to ignore:.env
*.secret
.claude/settings.json:{
"hooks": {
"PreToolUse": [
{
"matcher": "Read",
"hooks": [
{
"type": "command",
"command": "claude-ignore"
}
]
}
]
}
}
claude-ignore initInitializes claude-ignore configuration in your project:
.claudeignore file from template if it doesn't exist.claude/settings.json with hook configuration if it doesn't exist.claude/settings.json already existsclaude-ignore (default)Checks if a file should be ignored based on .claudeignore patterns. This is used internally by Claude Code as a PreToolUse hook.
When Claude tries to read a file, this hook:
.claudeignore files: Starting from the current directory, it searches upward through parent directories to find all .claudeignore filesThis hierarchical approach allows for flexible project configuration where you can have:
npm install
npm run build
npm run dev
npm run typecheck
FAQs
A Claude Code PreToolUse hook that prevents Claude from reading files that match patterns in .claudeignore files, similar to how .gitignore works.
The npm package claudeignore receives a total of 110 weekly downloads. As such, claudeignore popularity was classified as not popular.
We found that claudeignore 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.