Swiss Ephemeris binding for node.js.
See Swiss Ephemeris for more details.
Supported platforms: Mac OS X | Windows | Linux | FreeBSD
To install run:
$ npm install swisseph
From version 0.5.x only nodejs 0.12 or newer supported.
To use with older nodejs version use swisseph 0.4.x or older.
From version 0.5.x only nodejs 0.12 supported, because of C addons API compatibility.
var swisseph = ;var date = year: 2015 month: 1 day: 1 hour: 0;var julday = swisseph;
var swisseph = ;// Test datevar date = year: 2012 month: 1 day: 1 hour: 0;console;var flag = swissephSEFLG_SPEED;// path to ephemeris dataswisseph;// Julian dayswisseph;
For more examples see examples and test folders.
There are 3 different types of ephemeris supported:
To use data files download them and put in folder then set path to the ephemeris folder by:
And select ephemeris by setting the flag:
// for Moshierbody = swisseph// for Swiss Ephemerisbody = swisseph// for JPL NASA ephemerisbody = swisseph
To execute tests run from the root folder:
See Programming interface to the Swiss Ephemeris for more details.
Please feel free to fill issues for bugs, erros and features.
The license for this project is the same as original Swiss Ephemeris.