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

lunarday

v1.1.0

Published

农历生日日历生成器 - 将农历生日转换为公历日期,生成 Apple Calendar 兼容的 .ics 文件

Readme

lunarday

农历生日日历生成器 - 自动将农历生日转换为公历日期,生成苹果日历兼容的 .ics 文件,一键导入即可使用。

在线使用

推荐:直接访问在线版本,无需安装任何软件 → 打开农历生日日历生成器

快速开始

npx lunarday "老妈:19710101"

也可以使用 vp dlx lunardayyarn dlx lunardaypnpm dlx lunarday

用法

CLI 版本

npx lunarday "姓名:农历生日" [选项]

也可以使用 vp dlx lunardayyarn dlx lunardaypnpm dlx lunarday

成员格式

"姓名:YYYYMMDD" - 例如 "老妈:19710101" 表示农历1971年1月1日出生

示例

npx lunarday "老妈:19710101"
npx lunarday "老妈:19710101" "老爸:19720202"
npx lunarday "老妈:19710101" -y 2026,2027
npx lunarday "老妈:19710101" -n "老妈生日" -c "#FF69B4"

选项

| 选项 | 说明 | 默认值 | |------|------|--------| | -y, --years | 年份,逗号分隔 | 当前年和下一年 | | -o, --output | 输出文件 | 农历生日日历.ics | | -n, --name | 日历名称 | 家庭农历生日 | | -c, --color | 日历颜色 | #0088FF |

Web 版本

本地开发

# 安装依赖
vp install

# 启动开发服务器
vp dev

访问 http://localhost:3000

开发命令

vp dev      # 启动开发服务器
vp build    # 构建生产版本
vp pack     # 打包 CLI 为独立文件
vp preview  # 预览生产版本
vp check    # 格式化、lint 和类型检查
vp run test # 运行测试脚本
vp exec <cmd> # 执行本地项目命令

功能特性

  • 支持添加多位家人
  • 农历转公历实时预览
  • 支持闰月生日处理
  • 一键下载 .ics 文件
  • 数据本地保存(localStorage)
  • 移动端适配

导入 Apple Calendar

  1. 运行命令生成 .ics 文件(CLI)或点击下载按钮(Web)
  2. 打开 Apple Calendar → 文件 → 导入
  3. 选择 .ics 文件,点击"导入"

项目结构

lunarday/
├── bin/                    # CLI 版本
│   └── cli.js
├── src/                    # Web 版本
│   ├── index.html
│   ├── style.css
│   ├── app.js
│   └── core.js            # 核心逻辑(农历转换)
├── .github/
│   └── workflows/
│       ├── publish.yml    # npm 发布
│       └── deploy-web.yml # Web 部署
├── vite.config.ts         # Vite+ 配置
├── .node-version          # Node.js 版本
└── package.json

发布

# 更新版本号
vp pm version patch  # 或 minor/major

# 推送标签触发发布
git push --tags

GitHub Actions 会自动发布到 npm。

Web 版本会在推送到 main 分支时自动部署到 GitHub Pages。

License

MIT