Skip to content

kabeep/lunar-birthday-cli

Repository files navigation

lunar-birthday-cli

NodeJS Install Size NPM XO code style License

English | 简体中文

Insights

usage-png

📖 Introduction

A Node.js Library to list the lunar birthday in the terminal.

⚙️ Installation

npm install --global @kabeep/lunar-birthday-cli
yarn add --global @kabeep/lunar-birthday-cli
pnpm add --global @kabeep/lunar-birthday-cli

🚀 Usage

birthday [options] <date>

Options:
  -m, --mode     e(gg), n(ow), d(ecade),c(entury)
                           [string] [choices: "e", "n", "d", "c"] [default: "e"]
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  birthday 1997 05 08     Parameter date format
  birthday 1997-05-08     ISO-8601 standard date format
  birthday 05/08/1997     US date format
  birthday 1997/05/08     US variant date format
  birthday May 8, 1997    written date format
  -------
  birthday 1997-5-8       Birth year birthday (Lunar Calendar)
  birthday -m n 1997-5-8  Birthday this year (Gregorian Calendar)
  birthday -m d 1997-5-8  Birthdays in the next ten years (Gregorian Calendar)
  birthday -m c 1997-5-8  Birthday in century year (Gregorian Calendar)

* Valid input dates are between 1900-01-31 and 2100-12-31

🌐 i18n

语言名称 本地名称 ISO-639-1 ISO-3166-1 (Alpha-2) 文件
English - en US en-US.ts
Japanese 日本語 ja JP ja-JP.ts
Korean 한국어 ko KR ko-KR.ts
Vietnamese Tiếng Việt vi VN vi-VN.ts
Chinese Simplified 简体中文 zh CN zh-CN.ts
Chinese Traditional 繁體中文 zh TW zh-TW.ts

🔗 Related

🤝 Contribution

Contributions via Pull Requests or Issues are welcome.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.