Move vulnerabilities away. Make your project safer.
This package will fix other package known vulnerabilities by updating the version of the package to a stable, not vulnerable, version.
This package do this based on npm audit fix
, but better and ready to be implemented on automated pipelines.
It works on NodeJS v14, v16, v18 and v20.
npm i make-it-safer -D
npx make-it-safer
By default, the package fix all known vulnerabilities, but it can be used also to upgrade dependencies versions. See below:
npx make-it-safer --latest
npx make-it-safer --major
npx make-it-safer --minor
npx make-it-safer --patch
This package is ready to be implemented on automated pipelines and git flow. You can use this way:
- With Husky
npx make-it-safer && git add -A .
(use on the pre-commit hook)(can delay commit time)
- With pipelines
npx make-it-safer && git add -A . && git commit -m "(ci): fixed vulnerabilities" && git push
npx make-it-safer
npx makeitsafer
npx mis
- The vulnerabilities fix scripts were made by taylorho.
- The packages updating scripts were made by wellwelwel, on the package packages-update. Thanks!
Have an idea of improvement? Open an issue or a Pull Request! We are happily waiting your contribution :)