Skip to content

A simple c# terminal application that takes a user directory npmrc and renames it depending on type of development. Main use to switch between corporate and public npm package feeds.

Notifications You must be signed in to change notification settings

nathanmillar16/NPMRC-Public-or-Corporate-NPM-Registry-Switcher-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPMRC Public-or-Corporate NPM Registry Switcher App

Description

This console application allows the user to rename their .npmrc file programatically. This should save the user from having to navigate to the directory and perform numerous mouse click actions. The directory for the npmrc file is configurable and stored in the NPMRC-App.dll.config and editable through the console app./.

Downloads

OS-ARCH
LIN-X64
OSX-X64
WIN-X86
WIN-X64

Publishing

Using Visual Studio 22, publish the project to a directory of your choice. This will produce an .exe file for Windows users.

How to use

Once published, the console app acts as a wizard.

  • It will check if you have a directory set. Following that, it will ask if the user is happy with the config.

  • If the config needs to be edited, this can be done in the console application but the application will then need to be restarted. Please restart the application when it indicates to do so.

  • If no edits are needed to the configs, the user will be shown their set configs.

  • Following that it will ask if you are developing corporately (against a private npm artifacts feed) or wanting "personal development" (using the global npmjs feed)

  • If the first is chosen, the existing** .notInUseNpmrcName will be renamed to .npmrc

  • If the latter is chosen, the existing .npmrc will be renamed to .notInUseNpmrcName

** The console application assumes the user is wanting to switch from using .npmrc/developing corporately in the first instance the application runs after setting file directory configs.

About

A simple c# terminal application that takes a user directory npmrc and renames it depending on type of development. Main use to switch between corporate and public npm package feeds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages