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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jja

v2.3.21

Published

一些在终端的执行动作 🥜

Readme

jolly job aid (开心工作助手)

version issues 提交


📦 安装

npm install --save-dev  jja

📖 命令

remove

可用 npx jja rm <filename> <filename> <...> 的模式进行移除文件或文件夹

npx jja  rm <filename>

如果不想显示该过程的 log 信息,可以使用 -i 忽略掉:

npx jja  rm  -i  filename

package

使用 --diff-d 进行 package.json 文件内的依赖版本的检测,查看是否有更新(更新以本地安装的应用版本为准,而不是以 package.json 文件给出的范围)可用,给出反馈

npx jja package --diff
# 或者使用缩写
npx jjs pkg -d
# 指定源
npx jjs pkg -d=淘宝
npx jjs pkg -d=腾讯
npx jjs pkg -d=中科大
npx jjs pkg -d=yarn
# 默认源 (指定值不存在则默认使用 `官方`)
npx jjs pkg -d=官方

update

npx jja up

升级前尽量保证你的功能完善,且 git 目录干净

dns

添加了域名解析,使用线上的域名,目前仅支持 A 记录的查询

# 简单使用(将返回 github.com 的解析地址)
npx jja dns
# 使用自定义的网址
npx jja dns --domain=www.npmjs.com
npx jja dns -d=www.npmjs.com
# 使用自定义的判断联通的接口(默认 443)
npx jja dns --port=80
npx jja dns -p=80
# 展示每一个测试的 dns 信息
npx jja dns --not-covered
npx jja dns -n

执行其他代码

使用 run 达到 && 的执行串联的效果。当然,不仅仅只为了替代两个字符的 && 而选用三个字符的 run 来多此一举。因为在 Windows 上无法像使用 shell 使用 XXX=xxx 一样简单的使用环境变量。所以使用 jja run 来简化这一过程。

{
  "scripts": {
    "dev": "jja cls run PORT=9463 docusaurus start"
  }
}

当然,在 Windows 上有自己的设置运行环境变量的方式:

{
  "scripts": {
    "dev:cmd": "jja cls && set PORT=9463 && docusaurus start",
    "dev:powerShell": "jja cls && $env:PORT=9463; docusaurus start"
  }
}

而在 unix 系统上可以使用常用的:

{
  "scripts": {
    "dev:unix": "jja cls && PORT=9463 docusaurus start"
  }
}

📄 文档地址

参看 https://earthnut.dev/npm/jja/