Shortcut to interactively update your deps using npm + ipt
An iPipeTo workflow
Get it with npm:
npm install -g @ruyadorno/outdated ipt
In any npm project you want to update a dependency, run:
outdated
OR
bypass npm install and run it at once using npx:
npx @ruyadorno/outdated
outdated latest will build an interactive list using the Latest
option from npm outdatednpm outdated will provide two targets to update to: Wanted/Warning:
package.jsonoutdated
Options:
outdated Open interactive menu updating deps to a "Wanted" version
outdated latest Open interactive menu updating deps to a "Latest" version
--help Show this help menu
--version Prints version number
Although less powerful, this bash alias achieves roughly the same base usage of
pipping the result of npm outdated into ipt for a interactive experience.
alias outdated="npm install $(npm outdated --parseable | cut -d ':' -f 2 | ipt)"
MIT © 2021 Ruy Adorno