node-switch-persist is a simple module to persist configuration, including switches, in a local dotfile in your project's directory. It was created to fill a niche that was just outside other packages.