deoxxa / npmrc

Switch between different .npmrc files with ease and grace.
Other
441 stars 38 forks source link

Interactive mode #37

Open stephenmathieson opened 3 years ago

stephenmathieson commented 3 years ago

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!

stephenmathieson commented 3 years ago

Related #34