项目作者: rish-0-0

项目描述 :
Astrology npm package for Reha (a Dating App based on Astrology). Can calculate Birth Chart, D9 Chart and provide compatibility info.
高级语言: JavaScript
项目地址: git://github.com/rish-0-0/astroreha.git
创建时间: 2020-08-07T18:40:29Z
项目社区:https://github.com/rish-0-0/astroreha

开源协议:GNU General Public License v2.0

下载


Reha Astrology

Doesn't work in browser environments. Please run on server

  1. npm i -S astroreha
  1. Default House System: Whole Sign
  2. Default Ayanamsha Used: Lahiri
  3. Compatibility can have maximum 30 points. Default threshold for matching is 12. (>=12)

Get Birth Chart

  1. const astroreha = require("astroreha");
  2. // Get Birth Chart Details
  3. /**
  4. * @param {String} dateString format YYYY-MM-DD
  5. * @param {String} timeString format HH:MM:SS
  6. * @param {Number} lat latitude
  7. * @param {Number} lng longitude
  8. * @param {Number} timezone timezone in hours
  9. */
  10. const birthChart = astroreha.positioner.getBirthChart("1999-05-22", "08:00:00", 28.6139, 77.209, 5.5);
  11. // Get Rashi
  12. birthChart.meta.Mo.rashi // Rashi is Moon Sign in Indian Astrology
  13. // Get Sun Sign
  14. birthChart.meta.Su.rashi
  15. // Get Grahas in a certain Rashi
  16. birthChart.aries.signs // returns an array of grahas
  17. // Get compatibility (returns Boolean)
  18. astroreha.compatibility.areCompatible({dateString, timeString, lat, lng, timezone}, {dateString, timeString, lat, lng, timezone});

Updates for 1.1.5

  1. Changed Getting Navamsa Chart Logic to be more accurate considering floating point inaccuracies
  2. More constants available

Breaking Changes

  1. Not a default Export anymore
  2. Gives Positioner and Compatibility Feature

Verified with Prokerela.com