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

@flowx/npm

v1.0.5

Published

Node private package command-line interface

Downloads

3

Readme

[NPM] Private Package Manager

强大的npm私有源仓库程序。

$ npm ci # 安装依赖
$ npm run dev # 启动开发调试
$ npm run start # 生产环境启动

Command Support

目前支持以下的命令: (cpm 泛指 私有源命令行工具)

  • [x] cpm adduser [--scope=@orgname] [--auth-type=legacy] 登录或者添加用户或者修改用户(aliases: login, add-user)
  • [x] cpm install [<@scope>/]<name>[@<tag>|<version>|<version range>] 安装模块
  • [x] cpm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save] 卸载模块
  • [x] cpm update [-g] [<pkg>...] 更新模块
  • [x] cpm publish [<tarball>|<folder>] [--tag <tag>] 发布模块
  • [x] cpm unpublish [<@scope>/]<pkg>[@<version>] 删除模块
  • [x] cpm whoami 查看当前用户
  • [x] cpm owner add <user> [<@scope>/]<pkg> 添加贡献者
  • [x] cpm owner rm <user> [<@scope>/]<pkg> 删除贡献者
  • [x] cpm owner ls [<@scope>/]<pkg> 查看贡献者
  • [x] cpm deprecate <pkg>[@<version>] <message> 废弃版本
  • [x] cpm view [<@scope>/]<name>[@<version>] 查看包信息
  • [x] cpm dist-tag add <pkg>@<version> [<tag>] 添加dist-tag
  • [x] cpm dist-tag rm <pkg> <tag> 删除dist-tag
  • [x] cpm dist-tag ls [<pkg>] 查看所有dist-tags
  • [ ] cpm access public [<package>] 未知
  • [ ] cpm access restricted [<package>] 未知

Use NPC

NPC 主要用来辅助开发的工具,它具备NPM所有功能,但也包含对本程序的额外处理功能(初始化等)。

$ npm i -g @flowx/npm-cli
$ npc r
# type the registry url and select yes to confirm
$ npc setup
# test:
$ npc view react

Ecology

Setup

首先克隆快速安装模板

$ git clone [email protected]:flowxjs/npm-template.git
$ cd npm-template
$ rm -rf .git

你需要修改项目下面的npm.config.json来配置数据库和redis。修改完毕后将程序上传至你的服务器,通过以下命令启动

$ npm start

然后在你的本地电脑上通过辅助工具安装初始化:

$ npm i -g @flowx/npm-cli
$ npc r # 输入你的服务域名地址
$ npc setup # 按照流程进行

最后验证是否安装成功

$ npc view react