Skip to content

kagwave/sun-sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sun-sign

Use this module to find a sun sign based on a date of birth.

Installation

NPM:

npm install sun-sign

Yarn:

yarn add sun-sign

Usage

Import the package first.

import sunSign from 'sun-sign';
//or
const sunSign = require('sun-sign');

The required parameters are month and day, which can be in string or number format.

const sunSign = (month: string | number, day: string | number) => {
  return {sign: sign, element: element}
}

//ex.
sunSign(08, 21); // {sign: 'leo', element: 'fire'}

You can get a list of sun signs by calling the function with no parameters.

const signs = sunSign();
console.log(signs); // ['aries', 'taurus', 'gemini', 'cancer', 'leo', 'virgo', 'libra', 'scorpio', 'sagittarius', 'capricorn', 'aquarius', 'pisces'] 

About

A package that gets a zodiac sign corresponding to a given date of birth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published