Skip to main content
Home

Built and signed on GitHub Actions

A TypeScript class representing Zodiac signs with associated information, including names in multiple languages, Chinese zodiac signs, elements, and Yin-Yang attributes

This package works with BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.1.2)

License: MIT JSR

Zodiac Signs / Chinese Zodiac Signs

Provides a zodiac sign & chinese zodiac sign depending a birthday

Installation

<script src="https://cdn.jsdelivr.net/gh/besrourms/zodiacsigns@latest/index.min.js"></script>

Examples

Getting a zodiac sign from a date

// Return 'Sagittarius: The Archer'
console.log(new ZodiacSign('1991-11-30').sign)

Getting a chinese zodiac sign from a date

// Return {"sign": "Rat", "element": "Fire", "yinyang": "Yang"}
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT').chinese)

Getting a sign with translation

// Overload the default language (format xx)
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT', 'ar').chinese);

Translation

Fell free to participate to the translation in any language.

Available languages

  • English (en) – English
  • French (fr) – Français
  • Spanish (es) – Español
  • Arabic (ar) – العربية
  • Ukrainian (ua) – Українська
  • Chinese (zh) – 中文
  • Turkish (tr) – Türkçe
  • Japanese (ja) – 日本語
  • Indonesian (id) – Bahasa Indonesia
  • German (de) – Deutsch
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";
or

Import directly with a jsr specifier

import * as zodiacsigns from "jsr:@besrourms/zodiacsigns";

Add Package

pnpm i jsr:@besrourms/zodiacsigns
or (using pnpm 10.8 or older)
pnpm dlx jsr add @besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";

Add Package

yarn add jsr:@besrourms/zodiacsigns
or (using Yarn 4.8 or older)
yarn dlx jsr add @besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";

Add Package

vlt install jsr:@besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";

Add Package

npx jsr add @besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";

Add Package

bunx jsr add @besrourms/zodiacsigns

Import symbol

import * as zodiacsigns from "@besrourms/zodiacsigns";