indian-astrology
Get the Indian astrological details from the provided birth details as a JSON object. You will also get a prediction based on the calculated details.
Installation
$ npm install indian-astrology
Usage
const IndianAstrology = ; console;console;console;console;console;console;console;console;
Sample JSON Response
Note: The zodiac sign here is the Indian rashi equivalent sign. The prediction is based on the rashi alone as of now.
API
getByDate(day, month, year, hour, minute, timeZoneHour, timeZoneMinute, dayLightSaving)
Gives JSON object having the astrological details of given data.
day
{number} - The birth day.month
{number} - The birth month.year
{number} - The birth year.hour
{number} - The birth hour in 24 hour format.minute
{number} - The birth minute.timeZoneHour
{number} - The birth timezone hour.timeZoneMinute
{number} - The birth timezone minute.dayLightSaving
{boolean} - The true or false value of daylight saving.
const IndianAstrology = ; console;
getByDateAndZone(day, month, year, hour, minute, timeZone, dayLightSaving)
Gives JSON object having the astrological details of given data.
day
{number} - The birth day.month
{number} - The birth month.year
{number} - The birth year.hour
{number} - The birth hour in 24 hour format.minute
{number} - The birth minute.timeZone
{number} - The birth timezone.dayLightSaving
{boolean} - The true or false value of daylight saving.
const IndianAstrology = ; console;
getByDateOfIndia(day, month, year, hour, minute)
Gives JSON object having the astrological details of given data.
day
{number} - The birth day.month
{number} - The birth month.year
{number} - The birth year.hour
{number} - The birth hour in 24 hour format.minute
{number} - The birth minute.
const IndianAstrology = ; console;
getByDateWhereTimeUnknown(day, month, year, timeZoneHour, timeZoneMinute, dayLightSaving)
Gives JSON object having the astrological details of given data.
day
{number} - The birth day.month
{number} - The birth month.year
{number} - The birth year.timeZoneHour
{number} - The birth timezone hour.timeZoneMinute
{number} - The birth timezone minute.dayLightSaving
{boolean} - The true or false value of daylight saving.
const IndianAstrology = ; console;
getByDateWhereTimeUnknownOfIndia(day, month, year)
Gives JSON object having the astrological details of given data.
day
{number} - The birth day.month
{number} - The birth month.year
{number} - The birth year.
const IndianAstrology = ; console;
getCountryListWithZones()
Gives JSON object having the country list along with mapped timezones.
const IndianAstrology = ; console;
getOnlyCountryNameList()
Gives JSON array having the country names.
const IndianAstrology = ; console;
getTodaysDetails(dayLightSaving)
Gives JSON object having the astrological details of present day.
dayLightSaving
{boolean} - The true or false value of daylight saving.
const IndianAstrology = ; console;
Lint, Test and Build
npm run validate
Build
npm run build
Test
npm test
With ❤️ by
- Narendra Kamath G
- E-mail: narendrakamathg@gmail.com
- LinkedIn: Narendra Kamath G
License
MIT license. Copyright © 2018.