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

nucm

v1.11.1

Published

NPM User Change Manager(NPM 用户账号切换管理)

Downloads

22

Readme

NUCM -- NPM 用户账号切换管理

NPM version Coverage Status

NUCM 的全称为 NPM User Change Manager,是一款高效而直观的 NPM 账号切换管理工具,为开发者提供了简便的方法来轻松切换和管理不同的 NPM 用户账号。无论是在开发多个项目,协作开发,还是在不同的工作环境中切换,该工具都能帮助用户保持无缝的 NPM 包管理体验。

简体中文 | English

目录

  1. 详细文档
  2. 学习资料
  3. 快速开始
  4. 简单示例
  5. 注意事项

详细文档

文档地址:https://beezen.github.io/nucm/

学习资料

快速开始

安装

# 全局安装
$ npm install -g nucm # 或 yarn global add nucm

可用命令

Usage: nucm [options] [command]

Options:
  -v,--version                查看版本
  -h, --help                  显示命令帮助

Commands:
  ls [options]                查看账号列表
  use [options] <name>        切换账号
  add <name> <access-tokens>  添加账号
  del <name>                  移除账号
  localize <lang>             使用本地化语言
  update [options]            更新版本
  save                        保存当前账号
  registry|nrm <cmd...>       注册源配置
  help [command]              display help for command

简单示例

保存账号

$ nucm save

添加账号

$ nucm add beezen abcdefXXXXXXXXmno2

  添加账号成功

查看当前源账号

$ nucm ls

  beezend -- abcdef......mno1
  beezen --- abcdef......mno2
* beeze ---- abcdef......mno3

切换账号

$ nucm use beezen

  已切换到账号 beezen

注意事项

我们管理的是 NPM 发布的访问令牌

访问令牌是使用 API 或 npm CLI (CLI) 时,对 npm 进行身份验证的另一种选择。它是一个十六进制字符串,可用于身份验证,并授予您安装和/或发布模块的权限。

请注意:如果您是通过 npm login 或者 npm adduser 进行登录的用户,可以使用 nucm save 命令将当前登录账号的访问令牌保存起来。

在后续的使用过程中,您可以通过 nucm use <name> 的方式快速切换各种账号的访问令牌,从而实现对 npm 包使用不同账号进行发布。

如果想进一步了解 NPM 登录相关的配置,可以参考.npmrc 配置说明

许可证

MIT