
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.
sync-modules
Advanced tools
This package may be interesting to you if you're developing using Node.js and Git.
At the beginning of your workday you git pull the latest changes from your coworkers and start working. After a while you notice that some of the tests aren't passing. You back out your changes and the tests still won't pass! How is this possible? You know you've configured GitHub to protect the master branch so it can't be changed without passing tests and this shouldn't happen.
The problem is that you haven't brewed your morning tea yet and you forgot to type npm install after git pull. Your package.json file and node_modules directory are out of sync. Oops!
$ npm install --save-dev sync-modules
That's it; no configuration necessary. Installing the sync-modules package installs Git hooks to keep your node_modules directory in sync automatically with package.json when Git changes it.
It won't install if you already have a post-checkout or post-merge Git hook defined. I welcome a pull request if this case is important to you.
Thanks to David Walsh for the inspiration.
Copyright 2016 David Braun
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
FAQs
automatically keep node_modules in sync with Git hooks
We found that sync-modules 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.