Something like this would even be useful for npm etc.