2 ms·
it could also be run automatically when cd-ing into a directory by overriding the default cd cd() { builtin cd $* if [ -f "package.json" ] ; th
by malandrew 13y ago
it could also be run automatically when cd-ing into a directory by overriding the default cd
cd() {
builtin cd $*
if [ -f "package.json" ] ; then
npm check-vulnerabilities
fi
}
I reckon you could also use this with david[0] to check if packages are up to date.
[0] https://github.com/alanshaw/david https://github.com/alanshaw/david
- atishay811 13y agoI did not mean outdated. npm outdated can do that. See https://npmjs.org/doc/cli/npm-outdated.html https://npmjs.org/doc/cli/npm-outdated.html I was looking insecure version of the same through a public repo.