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

qn-utils

v1.0.0

Published

1. 在项目外文件夹安装 pnpm ,当前项目禁掉 npm

Downloads

3

Readme

鉴于项目驱动于 pnpm 的 workspace 功能,您需要以下安装步骤

  1. 在项目外文件夹安装 pnpm ,当前项目禁掉 npm
npm install -g pnpm
  1. -w root workspace 安装依赖
pnpm install -w

如果 node 版本太低,推荐升级至 14+

这里也提供了低版本不便于升级的解决方案:所有命令前加

npx -p node@14

过渡 pnpm 工具

| npm 命令 | pnpm 等效 | | ---------------- | ------------------------- | | npm install | pnpm install | | npm i | pnpm add | | npm run | pnpm /pnpm run | | npm install -dev | pnpm install -D |

另外列举两个常用命令~

只操作某一个包:
 pnpm <cmd> --filter pkgName // eg:@webb/utils
本地测试某一个包:

先在当前目录 build

 pnpm build --filter pkgName

在目标工作空间运行命令链接,只需要运行一次

pnpm link dir  // dir 可以是D:\*..*\webb\packages\utils

更用法直达 pnpm 官网

搭建进程

(~-11.28)
  • [x] pnpm 替换 lerna+yarn
  • [x] 支持 TS
  • [x] 支持 ES6+新特性
  • [x] CMJ + ESM 包
  • [ ] UMD 包(验证中)
  • [ç] 支持单元测试(暂用 js, 不做测试函数的类型校验)
  • [ ] 写更多的方法 + 测试用例 (1/5)
✨11.29-12.05
  • [ ] 写更多的方法 + 测试用例 (1/5)
  • [ ] 整理发布步骤
✨12.01- ~
  • [ ] 在项目中应用