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

@quote-gen/cli

v0.0.4

Published

名言搜索 CLI 工具,支持三种搜索模式:作者搜索、作品搜索、通用智能搜索。

Readme

quote-cli 名言搜索 CLI

名言搜索 CLI 工具,支持三种搜索模式:作者搜索、作品搜索、通用智能搜索。

安装

npm i @quote-gen/cli -g

配置

使用前需要设置 API Key:

quote-cli set-key <api-key>

命令

set-key - 设置 API Key

quote-cli set-key <api-key>

status - 查看当前状态

quote-cli status

查看 API Key 配置状态。

搜索命令

search - 通用名言搜索

根据关键词搜索名言警句。

quote-cli search <keyword>

示例:

quote-cli search "人生"
quote-cli search "爱情"

输出示例:

关键词 "人生" 搜索结果:

1. 人生苦短,及时行乐。
2. 人生就像一杯茶,不会苦一辈子,但总会苦一阵子。
...

author - 按作者搜索名言

搜索指定作者的名言、介绍及其作品中的名言。

quote-cli author <author-name>

示例:

quote-cli author "村上春树"
quote-cli author "鲁迅"

输出示例:

作者: 村上春树
介绍: 日本著名作家,代表作《挪威的森林》等

名言:
  1. 不必太纠结于当下,也不必太忧虑未来,当你经历过一些事情的时候,眼前的风景已经和从前不一样了。
  2. 世界上有什么不会失去的东西吗?我相信有,你也最好相信。
...

works - 按作品搜索名言

搜索指定作品中的名言及其介绍。

quote-cli works <work-name>

示例:

quote-cli works "挪威的森林"
quote-cli works "呐喊"

输出示例:

作品: 呐喊
介绍: 鲁迅创作的短篇小说集

名言:
  1. 真的猛士,敢于直面惨淡的人生,敢于正视淋漓的鲜血。
  2. 沉默呵,沉默呵!不在沉默中爆发,就在沉默中灭亡。
...

常用命令速查

# 设置 API Key
quote-cli set-key your-api-key

# 查看状态
quote-cli status

# 通用搜索
quote-cli search "关键词"

# 按作者搜索
quote-cli author "作者名"

# 按作品搜索
quote-cli works "作品名"