deoxxa / npmrc

Switch between different .npmrc files with ease and grace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interactive mode

stephenmathieson opened this issue · comments

I have many npm profiles setup on my work machine. I would like to make it slightly easier to switch between them. To do so, I propose an "intactive mode" where I'd be able to type:

$ npmrc

NOTE: this could be added behind an --interactive/-i flag to avoid a breaking change.

Which would bring up the list of profiles (currently exists), and let me select one by using arrow keys. Something like inquirer.prompt() in "list" mode would work perfectly. A working example can be found in the Inquirer.js repository.

I'd be happy to contribute this functionality (if desired). Please let me know what you think!