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

hlj-cli-dev

v1.0.1

Published

hlj-cli dev

Readme

  1. npm init -y

  2. npm i -D lerna

  3. sudo npm install -g cnpm --registry=https://registry.npm.taobao.org --verbos

  4. cnpm -v

  5. cnpm i -g lerna

  6. lerna init --packages="packages/*"

  7. clear

  8. git config --global user.name "sofi_hlj"

  9. git config --global user.email "[email protected]"

  10. lerna clean 清空所有依赖

  11. lerna v7 的 lerna add 被替换为

    npm install -w -w

    根目录下配置package.json "workspaces": [ "**" ],

  12. pwd 查看当前路径

  13. 在lerna环境下执行命令
    lerna exec -- rm -rf node_modules/ 在每一个packages中执行

  14. lerna bootstrap 重新装回依赖

  15. 手动指定删除包 l erna exec --scope @imooc-cli-dev/core -- rm -rf node_modules/

  16. lerna run 执行的是 npm 的 script ,每一个包下的 script

    lerna run --scope @hlj-cli-dev/utils test 指定包

  17. lerna version

  18. lerna changed

  19. lerna diff

  20. 添加代码仓库 gitee

    git remote add origin [email protected]:sofi-blue/hlj-cli-dev.git

  21. git remote -v

  22. git push origin master --set-upstream 设置默认选项

  23. git push

gitee 权限与管理

ssh-keygen -t ed25519 -C "[email protected]" 

cat ~/.ssh/id_ed25519.pub

"publishConfig": { "access": "public" },

将驼峰形式命名转换为横杠形式

cnpm i -S kebab-case

  1. lerna add axios util/getnpm-info/

  2. url-join

  3. semver

注册命令 使用commander

cnpm i -S commander

创建 初始化 包

lerna create @hlj-cli-dev/init

动态执行命令

lerna create @hlj-cli-dev/exec

创建一个package

lerna create @hlj-cli-dev/package

cnpm i -S pkg-dir models/package

lerna create @hlj-cli-dev/format-path

安装依赖 通过 npminstall 库来实现 安装在models/package中

npm install fs-extra -S 安装在models/package中

命令行交互常用库 inquirer

lerna add inquirer commands/init/

lerna create @hlj-cli-dev/request

lerna add axios utils/request

加入环境变量

vim ~/.env

文件遍历 glob, 模版渲染 ejs

cnpm i -S glob ejs