0.5.0 • Published 2 years ago

find-horoscope v0.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Find Horoscope

Node.js CI Publish Package to npmjs

Gives your horoscope and chinese horoscope based on your date of birth. Also has multi-language support

Install

npm i find-horoscope

Usage

findHoroscope.getZodiac(BirthDate, LangCode)

import { FindHoroscope } from "find-horoscope";

const birthDate:Date = new Date('March 20, 1995 13:24:00');
const findHoroscope = new FindHoroscope();

console.log(findHoroscope.getZodiac(birthDate, 'tr'));
//Balık

console.log(findHoroscope.getChineseZodiac(birthDate, 'en'));
//Pig

Supported Lang Codes:

LangCodeDescription
trTurkish
enEnglish
itItalian
frFrench