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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sunweibin/yrm

v1.3.0

Published

yarn registry manager can help you easy and fast switch between different yarn registries, now include: yarn, tabao, npm

Downloads

21

Readme

yrm -- Yarn Registry Manager

管理所有的yarn包的下载源Registry

NPM version

yrm可以帮助你轻松地添加、删除、查询、切换所有的Yarn Registries,目前内置npm,cnpm,yarn三个源

Install

$ npm install -g @sunweibin/yrm

Example

列出所有Registry

$ yrm ls
或者
$ yrm list

┌───────┬──────┬─────────────────────────────────┐
│ Using │ name │ Registry                        │
├───────┼──────┼─────────────────────────────────┤
│ -     │ npm  │ https://registry.npmjs.org/     │
│ *     │ cnpm │ https://registry.npmmirror.com/ │
│ -     │ yarn │ https://registry.yarnpkg.com/   │
└───────┴──────┴─────────────────────────────────┘

列出当前正在使用的源

# 默认查看 yarn  配置的镜像源
$ yrm now
// 查看 npm 配置的镜像源
$ yrm now npm
// 查看 pnpm 配置的镜像源
$ yrm now pnpm
// 查看所有的包管理器的镜像源
$ yrm now all

切换 yarn 的镜像源

$ yrm use cnpm

Your yarn registry has been set to:

yarn's Current Registry:
   [cnpm](https://registry.npmmirror.com/)

往镜像源列表中添加镜像源进行管理

$ yrm add swb https://registry.npmjs.org/

You have added swb successfully!
// ....

从镜像源列表中删除配置的自定义的镜像源

当删除的源正在使用时会指定 yarn 的官方源

$ yrm del swb

Usage

$ yrm help

Usage: yrm [options] [command]

Options:
  -V, --version                               output the version number
  -h, --help                                  display help for command

Commands:
  list|ls                                     列出所添加的包管理器镜像源,高亮的为 yarn 当前使用的镜像源
  now [packageManagerName]                    显示包管理器当前使用的镜像源, 默认显示 yarn 使用的镜像源, 可以查看比如:npm, pnpm配置的镜像源
  use <registry-name>                         切换 yarn 的当前镜像源
  add <name> <registry> [home]                添加镜像源管理
  del <name>                                  删除指定的镜像源,当删除的源正在使用时会指定 yarn 的官方源
  set <package-manager-name> <registry-name>  给其他包管理器设置 registry 例如: npm, pnpm
  help                                        打印出yrm的命令帮助信息

Default Registries

LICENSE

MIT