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

portal_common_core

v1.0.1

Published

该项目为前端多模块架构的公共模块,基座应用和子应用可以集成公共依赖,实现状态管理、权限控制、事件总线的统一管控

Readme

前端公共依赖

该项目为前端多模块架构的公共模块,基座应用和子应用可以集成公共依赖,实现状态管理、权限控制、事件总线的统一管控

基本信息

  • npm 版本:v21.7.3

仓库地址

仓库地址说明

  • nmp-private 私有仓库,只有公司内部打包的 npm 包
  • npm-proxy 代理仓库,方便下载外部依赖
  • npm-group 组合仓库,优先从私有仓库下载依赖,没有再从代理仓库下载依赖

环境准备

安装 Node 版本管理工具 nvm

nvm 用于安装和管理多个 Node.js 版本。以下是安装步骤:

  1. 安装 nvm

    • MacOS / Linux:运行以下命令

      curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
    • Windows:可以下载并运行 nvm-windows 安装包

  2. 安装指定 Node 版本(如:v21.7.3)

    nvm install 21.7.3
  3. 切换到指定版本

    nvm use 21.7.3
  4. 确认版本
    确保 Node 和 npm 版本正确:

    node -v
    npm -v

安装 nrm 用于管理 npm 仓库源

nrm 可以帮助快速切换 npm 的仓库源,适合在多个仓库间切换。

  1. 安装 nrm

    npm install -g nrm
  2. 查看当前可用源

    nrm ls
  3. 添加并切换到指定源

    • 使用仓库 chancesGroup

      nrm use chancesGroup
    • 如需添加源,也可以使用以下命令:

      nrm add <源名称> <源地址>

初次安装依赖

  1. 切换到指定仓库:nrm use chancesGroup
  2. 安装依赖:npm i
  3. 启动开发环境:npm run dev

发布到私有仓库

  1. 修改 package.json 中的 version 字段(通常为小版本更新,如 1.0.1、1.0.2)。
  2. 切换到私有仓库:nrm use chances
  3. 构建项目:npm run build
  4. 发布:npm publish

这样便可在私有仓库中发布项目,使用方便快捷。