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

pokecn

v0.1.2

Published

宝可梦终端百科全书 · Pokémon Terminal Encyclopedia

Readme

pokecn

宝可梦终端百科全书 · Pokémon Terminal Encyclopedia

第一个中英双语的宝可梦终端查询工具。支持中文名/英文名/图鉴编号输入,展示精灵图片、基础数值、特性、进化链、图鉴描述等完整信息。

安装

方式一:npm 全局安装(需要 Node.js >= 18)

npm install -g pokecn

方式二:一键安装二进制(无需 Node / Bun)

curl -fsSL https://raw.githubusercontent.com/BosenY/pokecn-cli/main/install.sh | sh

支持 macOS(Apple Silicon / Intel)和 Linux(x64 / arm64)。

方式三:通过 Bun 全局安装

bun install -g pokecn

方式四:临时体验,零安装

# Node.js
npx pokecn get 皮卡丘

# Bun
bunx pokecn get 皮卡丘

使用

# 中文名
pokecn get 皮卡丘

# 英文名
pokecn get pikachu

# 图鉴编号
pokecn get 25

# 英文模式
pokecn get 皮卡丘 --lang en

# 闪光版
pokecn get 皮卡丘 --shiny

# 不显示图片
pokecn get 皮卡丘 -T

输出示例

┌───────────────────────────────────────────────────────
  [精灵图片]
  #025 皮卡丘 / Pikachu
  鼠宝可梦 · ⚡ 电
  第一世代
├───────────────────────────────────────────────────────
  基础信息
  身高: 0.4m   体重: 6.0kg   捕获率: 190
  性别比例: ♂ 50% ♀ 50%   基础友好度: 70
├───────────────────────────────────────────────────────
  基础数值
  HP     ███░░░░░░░░░░░░░░░░░   35
  攻击   ████░░░░░░░░░░░░░░░░   55
  防御   ███░░░░░░░░░░░░░░░░░   40
  特攻   ████░░░░░░░░░░░░░░░░   50
  特防   ████░░░░░░░░░░░░░░░░   50
  速度   ███████░░░░░░░░░░░░░   90
├───────────────────────────────────────────────────────
  特性
  ● 静电  身上带有静电,有时会让接触到的对手麻痹。
  ◆ 避雷针 [隐藏]  将电属性的招式吸引到自己身上。
├───────────────────────────────────────────────────────
  进化链
  皮丘 ──[好感度]──▶ 皮卡丘 ──[雷之石]──▶ 雷丘
├───────────────────────────────────────────────────────
  图鉴描述
  皮卡丘们把尾巴贴在一起交换电流,其实是在互相打招呼。
└───────────────────────────────────────────────────────

技术栈

  • 开发运行时: Bun
  • 发布产物: Node.js 兼容的单文件 bundle(Node.js >= 18)
  • 语言: TypeScript
  • CLI 框架: citty
  • 图片渲染: terminal-image(自动检测 iTerm2/Kitty/ANSI 降级)
  • 数据源: PokeAPI v2

开发

# 安装依赖
bun install

# 运行
bun src/cli.ts get 皮卡丘

# 测试
bun test

# 编译多平台二进制
bun run build

# 打包 npm 发布产物(Node.js 兼容)
bun run build:npm

# 重新生成中文名映射表
bun scripts/build-name-map.ts

License

MIT