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

@wzwjustdoit/helloworld-cli

v1.0.1

Published

A minimalist helloworld CLI that prints 'Hello World'

Readme

helloworld-cli

English | 中文

一个极简的命令行工具,安装后执行 helloworld-cli 即可在终端打印 Hello World

链接

安装

全局安装后,可在任意终端直接使用 helloworld-cli 命令

npm

npm install -g @wzwjustdoit/helloworld-cli

bun

bun add -g @wzwjustdoit/helloworld-cli

yarn

yarn global add @wzwjustdoit/helloworld-cli

pnpm

pnpm add -g @wzwjustdoit/helloworld-cli

使用

helloworld-cli

输出:

Hello World

开发者须知

本项目是纯 JavaScript 实现,无依赖、无编译步骤

构建

无需构建,直接运行测试验证:

npm test

检查发布产物内容:

npm pack --dry-run
(应只包含 `bin/` `package.json` `README.md` `LICENSE`)

发布到 npm

首次发布流程: git commit -> npm adduser -> npm publish -> git push

更新发布流程: git commit -> npm version -> npm publish -> git push

1. 准备 git 仓库 | git commit

git 仓库的初始化、关联远程、提交

注意: 首次发布流程 需要执行此步

git init
git add .
git commit -m "Initial Commit"
git branch -M master
git remote add origin https://github.com/wzwjustdoit/helloworld-cli.git
git push -u origin master
git tag v1.0.0
git push origin v1.0.0

2. 登录 npm 账号 | npm adduser

注意: 需先在 https://www.npmjs.com 注册

注意: 本机若配置了镜像源(例如 npmmirror ), 必须显式指定官方源

npm adduser
# or
# npm adduser --registry=https://registry.npmjs.org/
# npm whoami --registry=https://registry.npmjs.org/

3. 升级版本(可选) | npm version

注意: 更新发布流程 需要执行此步

注意: 先完成 git 提交, 之后 npm version 才能在仓库内自动生成版本提交和 tag

git add .
git commit -m "Fixbugs"
npm version patch   # 1.0.0 -> 1.0.1  (修复 bug)
npm version minor   # 1.0.0 -> 1.1.0  (新增功能)
npm version major   # 1.0.0 -> 2.0.0  (破坏性变更)
`npm version` 会自动修改 `package.json` 中的 `version` 字段(同时写回 `package-lock.json` 若存在), 
并且在 git 仓库中执行时会自动生成一次版本提交和 tag(如 `v1.0.1`)

因此 `npm version` 必须在 git 仓库内、且工作区已提交干净后执行

4. 发布到官方源 | npm publish

注意: 本机若配置了镜像源(例如 npmmirror ), 必须显式指定官方源

npm publish
# or
# npm publish --registry=https://registry.npmjs.org/

package.json 中的 publishConfig.access 已设为 public, scoped 包无需额外传 --access=public

5. 仓库和 tag 推送到 GitHub | git push

# or : push all tags
# git push && git push --tags

# or : push specified tag
git push && git push origin v1.0.1

参考: npm 发布规范