
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@kabeep/lunar-date-fns
Advanced tools
This repository was created because my family's custom is to use the lunar calendar for birthdays, and many people can easily remember them except for me. I prefer the Gregorian calendar for birthdays.
Therefore, this package is currently mainly used for the mutual conversion between the Gregorian calendar and the lunar calendar. It will not output i18n, the Chinese zodiac, the 24 solar terms, the heavenly stems and .etc.
A lightweight, precise and zero-dependency utility library using Kim Larson's algorithm.
See documentation.
npm install @kabeep/lunar-date-fns --save
yarn add @kabeep/lunar-date-fns
pnpm add @kabeep/lunar-date-fns
CommonJS
const { toLunar, toSolar } = require('@kabeep/lunar-date-fns');
ESModule
import { toLunar, toSolar } from '@kabeep/lunar-date-fns';
Contributions via Pull Requests or Issues are welcome.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A JavaScript lunar date utility library
We found that @kabeep/lunar-date-fns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.