npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yarnrc

v1.1.4

Published

Switch between different .yarnrc files with ease and grace

Readme

yarnrc

Switch between different .yarnrc files with ease and grace.

Overview

This is an adapted version of npmrc(npmrc) to work with the new package manager released by Facebook known as Yarn. If you use a private npm registry, you know the pain of switching between a bunch of different .yarnrc files and manually managing symlinks. Let that be a problem no more! yarnrc is here to save the day, by making it dead simple to switch out your .yarnrc with a specific named version. It also tries to protect you from your own stupid self by making sure you don't accidentally overwrite an .yarnrc that you actually want to keep.

Installation

npm install -g yarnrc

Usage

➜  ~  yarnrc --help

yarnrc

  Switch between different .yarnrc files with ease and grace.

Usage:
  yarnrc                 list all profiles
  yarnrc [name]          change yarnrc profile (uses fuzzy matching)
  yarnrc -c [name]       create a new yarnrc profile called name
  yarnrc -r [registry]   use an npm mirror

Available mirrors for yarnrc -r:
  au      - Australian registry mirror
  eu      - European registry mirror
  cn      - Chinese registry mirror
  default - Default registry

Initialisation

Calling yarnrc without arguments creates an ~/.yarnrcs/ directory if it doesn't exist, and copies your current ~/.yarnrc as the 'default' .yarnrc profile.

➜  ~  yarnrc
Creating /Users/conrad/.yarnrcs
Making /Users/conrad/.yarnrc the default yarnrc file
Activating .yarnrc 'default'

Create a new .yarnrc profile

➜  ~  yarnrc -c newprofile
Removing old .yarnrc (/home/rvagg/.yarnrcs/default)
Activating .yarnrc 'newprofile'

A blank profile will be created. To point your profile to a non-default registry:

➜  ~  npm config set registry http://npm.nodejs.org.au:5984/registry/_design/app/_rewrite

Then use npm adduser or npm login to authenticate with the new profile.

List available .yarnrc profiles

➜  ~  yarnrc
Available yarnrcs:

* default
  work

Switch to a specific .yarnrc

➜  ~  yarnrc work
Removing old .yarnrc (/Users/conrad/.yarnrcs/default)
Activating .yarnrc 'work'

You can also pass only the first few characters of a profile and yarnrc will autocomplete the profile's name.

➜  ~  yarnrc def
Removing old .yarnrc (/Users/conrad/.yarnrcs/work)
Activating .yarnrc 'default'

yarnrc <name> will also go to some lengths to make sure you don't overwrite anything you might care about:

➜  ~  yarnrc default
Removing old .yarnrc (/Users/conrad/.yarnrcs/work)
Activating .yarnrc 'default'
➜  ~  yarnrc default  
Current .yarnrc (/Users/conrad/.yarnrc) is already 'default' (/Users/conrad/.yarnrcs/default)
➜  ~  rm ~/.yarnrc
➜  ~  touch ~/.yarnrc
➜  ~  yarnrc default
Current .yarnrc (/Users/conrad/.yarnrc) is not a regular file, not removing it
➜  ~  rm ~/.yarnrc
➜  ~  yarnrc default
Activating .yarnrc 'default'

Note For Windows Users

You may have to run yarnrc in a shell (cmd, PowerShell, Git Bash, etc) with elevated (Administrative) privileges to get it to run.

Environment Variables

  • YARNRC_STORE - Path to directory of profiles. Default: ~/.yarnrcs/
  • YARNRC - Path to the yarnrc file used by npm. Default: ~/.yarnrc

Known npm registry Mirrors

For your convenience, you can change registries easily using the -r flag. Currently we provide aliases for:

Switching registry example

➜  ~  npm -r eu
Using eu registry
➜  ~  npm info yarnrc
npm http GET http://registry.npmjs.eu/yarnrc
^C
➜  ~  npm -r default
Using default registry
➜  ~  npm info yarnrc
npm http GET https://registry.npmjs.org/yarnrc
^C

License

3-clause BSD. A copy is included with the source.

Contact

Awesome People

  • deoxxa "the creator" of npmrc(github)
  • Jaime "the binary wizard" Pillora (github)
  • Tim "two hands" Oxley (github)
  • Jakob "fastest blur in the west" Krigovsky (github)
  • Rod "the destroyer" Vagg (github)
  • Eugene "ludicrous gibs" Asiedu (github)