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 🙏

© 2025 – Pkg Stats / Ryan Hefner

deisrc

v1.1.1

Published

Switch between different .deis/client.json with ease and grace

Downloads

5

Readme

deisrc

Switch between different .deis/client.json files with ease and grace.

Inspiration

This module is totally inspired (and mainly copied) from excellent deoxxa/npmrc.

Overview

If you administer multiple Deis clusters, you know the pain of switching between a bunch of different .deis/client.json files. Let that be a problem no more! deisrc is here to save the day, by making it dead simple to switch out your .deis/client.json 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 .deis/client.json that you actually want to keep.

Installation

npm install -g deisrc

Usage

➜  ~  deisrc --help

deisrc

  Switch between different .deis/client.json files with ease and grace.

Usage:
  deisrc                 list all profiles
  deisrc [name]          change deis profile (uses fuzzy matching)
  deisrc -c [name]       create a new deis profile called name

Example:

  # Creating and activating a new Deis profile called "work":
  $ deisrc -c work

  # Switch betwen "work" and "default"
  $ deisrc work
  $ deisrc default

Initialisation

Calling deisrc without arguments creates an ~/.deisrcs/ directory if it doesn't exist, and copies your current ~/.deis/client.json as the 'default' .deis/client.json profile.

➜  ~  deisrc
Creating /Users/loic/.deisrcs
Making /Users/loic/.deis/client.json the default deisrc file
Activating .deis/client.json 'default'

Create a new .deis/client.json profile

➜  ~  deisrc -c newprofile
Removing old .deis/client.json (/home/loic/.deisrcs/default)
Activating .deis/client.json 'newprofile'

A blank profile will be created.

Then use deis register or deis login to authenticate with the new profile.

List available .deis/client.json profiles

➜  ~  deisrc
Available deisrcs:

* default
  work

Switch to a specific .deis/client.json

➜  ~  deisrc work
Removing old .deis/client.json (/Users/loic/.deisrcs/default)
Activating .deis/client.json 'work'

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

➜  ~  deisrc def
Removing old .deis/client.json (/Users/loic/.deisrcs/work)
Activating .deis/client.json 'default'

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

➜  ~  deisrc default
Removing old .deis/client.json (/Users/loic/.deisrcs/work)
Activating .deis/client.json 'default'
➜  ~  deisrc default  
Current .deis/client.json (/Users/loic/.deis/client.json) is already 'default' (/Users/loic/.deisrcs/default)
➜  ~  rm ~/.deis/client.json
➜  ~  touch ~/.deis/client.json
➜  ~  deisrc default
Current .deis/client.json (/Users/loic/.deis/client.json) is not a regular file, not removing it
➜  ~  rm ~/.deis/client.json
➜  ~  deisrc default
Activating .deis/client.json 'default'

Note For Windows Users

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

Environment Variables

  • DEISRC_STORE - Path to directory of profiles. Default: ~/.deisrcs/
  • DEISRC - Path to the .deis/client.json file used by Deis. Default: ~/.deis/client.json

License

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