Skip to content

kabeep/lunar-birthday-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

  • lunar-date-fns - ๐Ÿ—“๏ธ A JavaScript lunar date utility library.

๐Ÿค Contribution

Contributions via Pull Requests or Issues are welcome.

๐Ÿ“„ License

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