一覧へ戻る
BesrourMS/ZodiacSigns(新しいタブで開きます)
主要言語: TypeScript
Get the Zodiac Sign / Chinese Zodiac Sign for a date in JavaScript
- star 数
- 7
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 0
- 最終更新
- 2025/06/04
主要言語: TypeScript
Get the Zodiac Sign / Chinese Zodiac Sign for a date in JavaScript
Provides a zodiac sign & chinese zodiac sign depending a birthday
<script src="https://cdn.jsdelivr.net/gh/besrourms/zodiacsigns@latest/index.min.js"></script>
// Return 'Sagittarius: The Archer' console.log(new ZodiacSign('1991-11-30').sign)
// Return {"sign": "Rat", "element": "Fire", "yinyang": "Yang"} console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT').chinese)
// Overload the default language (format xx) console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT', 'ar').chinese);
Fell free to participate to the translation in any language.