install/uninstall command wrapped into one


(Andrew Kaiser) #1

Wondering if this is interesting to people, I often find myself removing and then adding a package at the same time, like so:

npm un babel-core && npm i -D @babel/core

it would be cool if I could write something like:

npm alter -babel-core +@babel/core

not sure about the keyword alter just yet, but I think the core idea is useful enough and harmless