utility to make it easy to switch between npm registries