1.3.0 • Published 3 months ago

western-signs v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Western Signs

Simple interface for western astrological signs.

NPM Version GitHub License

West Art

The Western Signs library provides detailed information about each astrological sign, including its name, element, modality, rulingPlanet and glyph, among other things. Additionally, you can specify the language for translations.

Installation

To install dependencies:

npm install western-signs

Usage

To use the getSignByName function, import it along with the SIGNS constant from the western-signs package:

import { getSignByName, SIGNS } from 'western-signs'

Call the function with the desired astrological sign and optionally specify a language code. If no language code is provided, it defaults to English.

const data = getSignByName(SIGNS.TAURUS)

It should returns an object with the following properties:

{
  name: 'Taurus',
  element: 'Earth',
  modality: 'Fixed',
  rulingPlanet: 'Venus',
  glyph: '♉'
  [...]
}

License

MIT License © 2024 Marc Mariné

1.2.0

3 months ago

1.3.0

3 months ago

1.1.1

4 months ago

1.1.0

5 months ago

1.0.0

5 months ago