NPMRC.JS(1)

πŸ“¦
version 1.1.1 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

npmrc.js β€” switch between different .npmrc files, bestie. it's giving profile-manager energy ✨


🌸 DESCRIPTION 🌸

okay so. npmrc? literally the cutest way to switch between different .npmrc files with ease and grace πŸ’… no cap, that's the whole vibe.

πŸŽ€ Usage

  • npmrc β€” list all profiles πŸ“‹
  • npmrc [name] β€” change npmrc profile (uses fuzzy matching, so you don't gotta type it perfect, slay) πŸ”
  • npmrc -c [name] β€” create a new npmrc profile called name πŸŽ‰
  • npmrc -r [registry] β€” use an npm mirror πŸͺž

πŸ¦‹ Available mirrors for npmrc -r

  • au β€” Australian registry mirror πŸ‡¦πŸ‡Ί
  • eu β€” European registry mirror πŸ‡ͺπŸ‡Ί
  • cn β€” Chinese registry mirror πŸ‡¨πŸ‡³
  • default β€” Default registry ⭐

✨ Example

# Creating and activating a new .npmrc called "work":
$ npmrc -c work

# Switch between "work" and "default"
$ npmrc work
$ npmrc default

# Use the European npm mirror
$ npmrc -r eu

and that's the whole page, periodt πŸ’œ go switch some profiles, you're the main character of your own config fr fr 🫢

this was npmrc.js version 1.1.1, from March 2022, living in the NPMRC.JS(1) manual β€” bye bestie, ily, go be iconic πŸŒˆπŸ’–

πŸ“¦ where this page comes from