sweph 2.10.3-3 → 2.10.3-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -13
- package/binding.gyp +4 -3
- package/index.d.ts +79 -76
- package/index.js +16 -7
- package/index.mjs +109 -102
- package/package.json +14 -6
- package/prebuilds/darwin-arm64/sweph.node +0 -0
- package/prebuilds/linux-arm64/sweph.node +0 -0
- package/prebuilds/linux-x64/sweph.node +0 -0
- package/prebuilds/win32-x64/sweph.node +0 -0
- package/swisseph/swecl.c +19 -21
- package/swisseph/swehel.c +5 -16
- package/swisseph/swehouse.c +6 -3
- package/swisseph/swejpl.c +7 -1
- package/swisseph/swemmoon.c +6 -6
- package/swisseph/sweodef.h +0 -19
- package/swisseph/sweph.c +7 -7
- package/swisseph/sweph.h +14 -14
- package/swisseph/swephexp.h +3 -8
- package/swisseph/swephlib.c +16 -8
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Sweph
|
|
2
2
|
|
|
3
3
|
The definitive Swiss Ephemeris bindings for Node.js
|
|
4
|
-
Everything you need to create Astrology and Astronomy applications with JavaScript and
|
|
4
|
+
Everything you need to create Astrology and Astronomy applications with JavaScript and Node.JS
|
|
5
5
|
|
|
6
6
|
* 100% API coverage
|
|
7
7
|
* Built-in Typescript declarations and ESM exports
|
|
8
8
|
* Built-in intellisense documentation
|
|
9
9
|
* Version matched
|
|
10
|
-
*
|
|
10
|
+
* Built with Node's N-API
|
|
11
11
|
|
|
12
12
|
[Official programmer's documentation for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/swisseph/swephprg.htm)
|
|
13
13
|
[Official guide for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/ftp/swisseph/doc/swisseph.htm)
|
|
@@ -38,6 +38,9 @@ This library is version locked to the Swiss Ephemeris in addition to its own rev
|
|
|
38
38
|
|
|
39
39
|
Updates to this library will be released under new revisions, while updates to Swiss Ephemeris will be released under matching SemVer versions.
|
|
40
40
|
|
|
41
|
+
**Current Version: 2.10.3-b-1**
|
|
42
|
+
**Equivalent to Swiss Ephemeris version: 2.10.03b revision 1**
|
|
43
|
+
|
|
41
44
|
## Documentation
|
|
42
45
|
|
|
43
46
|
This library is fully typed and documented via intellisense. To access its documentation simply hover over its functions in your favorite code editor:
|
|
@@ -46,25 +49,30 @@ This library is fully typed and documented via intellisense. To access its docum
|
|
|
46
49
|
|
|
47
50
|
## Ephemeris files
|
|
48
51
|
|
|
49
|
-
This library does not include any ephemeris files
|
|
52
|
+
Ephemeris files are required to enable high precision calculations for planets and asteroids. This library does not include any ephemeris files by default, but you can download them from the official Swiss Ephemeris Github repository (main planets only) or the official Astrodienst Dropox folder (all files):
|
|
53
|
+
|
|
54
|
+
* Swiss Ephemeris Github: [https://github.com/aloistr/swisseph/tree/master/ephe](https://github.com/aloistr/swisseph/tree/master/ephe)
|
|
55
|
+
* Astrodienst Dropbox [https://www.dropbox.com/scl/fo/y3naz62gy6f6qfrhquu7u/h?rlkey=ejltdhb262zglm7eo6yfj2940&dl=0](https://www.dropbox.com/scl/fo/y3naz62gy6f6qfrhquu7u/h?rlkey=ejltdhb262zglm7eo6yfj2940&dl=0)
|
|
50
56
|
|
|
51
57
|
Each main ephemeris file covers a range of 600 years starting from the century indicated in its name, for example the file `sepl_18.se1` is valid from year 1800 until year 2400. The following files are available:
|
|
52
58
|
|
|
53
|
-
* sepl files - planets
|
|
59
|
+
* sepl files - planets
|
|
54
60
|
* seplm files - planets (BC)
|
|
55
|
-
* semo files - moon
|
|
61
|
+
* semo files - moon
|
|
56
62
|
* semom files - moon (BC)
|
|
57
|
-
* seas files - main asteroids
|
|
63
|
+
* seas files - main asteroids
|
|
58
64
|
* seasm files - main asteroids (BC)
|
|
59
65
|
|
|
60
|
-
For advanced usage, the following files can also be found:
|
|
66
|
+
For advanced usage, the following files and folders can also be found in the dropbox link:
|
|
67
|
+
|
|
68
|
+
* all_ast - files for all asteroids (600 years range)
|
|
69
|
+
* long_ast - files for named asteroids (6000 years range)
|
|
70
|
+
* jpl binary files - files for NASA's JPL ephemerides
|
|
71
|
+
* ephe/sat folder - files for planetary moons
|
|
61
72
|
|
|
62
|
-
|
|
63
|
-
* longfiles folder - files for individual asteroids (6000 years)
|
|
64
|
-
* jplfiles folder - files for NASA's JPL ephemerides
|
|
65
|
-
* sat folder - files for planetary moons
|
|
73
|
+
To use the files, download them, store them in some folder, then call `set_ephe_path()` to point the library to that folder. Asteroid files should be placed in `astxxx` subfolders, the same way they appear in the dropbox asteroids section. Files for planetary moons should be placed in a `sat` subfolder.
|
|
66
74
|
|
|
67
|
-
More information can be found in the [Swiss Ephemeris
|
|
75
|
+
More information can be found in the files sections of the [Swiss Ephemeris documentation](https://www.astro.com/ftp/swisseph/doc/swisseph.htm).
|
|
68
76
|
|
|
69
77
|
## Contributing
|
|
70
78
|
|
|
@@ -74,7 +82,7 @@ If you find any inaccuracy or bug in this library, or if you find an upstream up
|
|
|
74
82
|
|
|
75
83
|
* While worker_threads are supported, the underlying C library is single threaded and contains process-wide settings. Functions such as `set_ephe_path()` or `set_sid_mode()` will affect the entire process, including all worker_threads. While you can still use worker_threads as long as you don't change settings from other threads in the middle of calculations, true thread-safe multithreading can only be achieved using child_process.
|
|
76
84
|
|
|
77
|
-
* This library is a C/C++ add-on designed for Node.JS only, it will not work in browsers, other JS engines or in any other environment that does not support native C/C++ add-ons. In order to install this library, the target system must have the necessary build tools installed, such as `python`, `make` and `gcc` on Linux, `xcode` on Mac, `visual c
|
|
85
|
+
* This library is a C/C++ add-on designed for Node.JS only, it will not work in browsers, other JS engines or in any other environment that does not support native C/C++ add-ons made with Node's N-API. In order to install this library, the target system must have the necessary build tools installed, such as `python`, `make` and `gcc` on Linux, `xcode` on Mac, `visual c++ build tools` on Windows, and/or other equivalent solutions.
|
|
78
86
|
|
|
79
87
|
## Copyright
|
|
80
88
|
|