
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.
Hookage makes it easy to run git hooks
Add it to your repository with:
npx create-hookage@latest
To ensure high code quality, you use automated testing, linting, and other tools.
Automated checks on the CI server are helpful, but have you ever pushed code and have your pipeline fail because of some small formatting error?
Wouldn't it be good if you could also run the same checks locally without manual effort before pushing code changes?
Git has a built-in hook system that allows you to run custom scripts on pre-commit, pre-push, and other events.
This project provides a simplified way to configure and run these hooks. It is built to make configuration as easy as possible, while also adding some neat features.
In package.json, define your hooks:
"hookage": {
"pre-commit": [
"npm run affected:lint",
"npm run affected:format"
],
"pre-push": [
"npm run affected:test"
]
}
This will run npm run affected:lint and then npm run affected:format just before the changes are commited to git.
It will run npm run affected:test just before changes are pushed.
To run tasks in parallel, use the following syntax:
"hookage": {
"pre-push": {
"test": "npm run affected:test",
"build": "npm run affected:build"
}
}
FAQs
Hookage makes it easy to run git hooks
We found that hookage 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.

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.