@swisseph/node 1.0.0
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/LICENSE +661 -0
- package/README.md +261 -0
- package/binding/swisseph_binding.cc +266 -0
- package/binding.gyp +52 -0
- package/dist/index.d.ts +193 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +343 -0
- package/ephemeris/seas_18.se1 +0 -0
- package/ephemeris/sefstars.txt +1602 -0
- package/ephemeris/semo_18.se1 +0 -0
- package/ephemeris/sepl_18.se1 +0 -0
- package/package.json +75 -0
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swisseph/node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Swiss Ephemeris for Node.js - high precision astronomical calculations with native bindings",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"binding",
|
|
18
|
+
"binding.gyp",
|
|
19
|
+
"ephemeris",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"astronomy",
|
|
24
|
+
"astrology",
|
|
25
|
+
"ephemeris",
|
|
26
|
+
"swiss-ephemeris",
|
|
27
|
+
"planets",
|
|
28
|
+
"celestial",
|
|
29
|
+
"julian-day",
|
|
30
|
+
"typescript",
|
|
31
|
+
"native",
|
|
32
|
+
"nodejs"
|
|
33
|
+
],
|
|
34
|
+
"author": "",
|
|
35
|
+
"license": "AGPL-3.0",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/swisseph-js/swisseph.git",
|
|
39
|
+
"directory": "packages/node"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/swisseph-js/swisseph/tree/main/packages/node",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/swisseph-js/swisseph/issues"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@swisseph/core": "^1.0.1",
|
|
50
|
+
"node-addon-api": "^7.1.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/jest": "^29.5.11",
|
|
54
|
+
"@types/node": "^20.10.6",
|
|
55
|
+
"jest": "^29.7.0",
|
|
56
|
+
"node-gyp": "^10.0.1",
|
|
57
|
+
"ts-jest": "^29.1.1",
|
|
58
|
+
"ts-node": "^10.9.2",
|
|
59
|
+
"typescript": "^5.3.3"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=14.0.0"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"install": "node-gyp rebuild",
|
|
66
|
+
"build": "node-gyp rebuild && tsc",
|
|
67
|
+
"build:native": "node-gyp rebuild",
|
|
68
|
+
"build:js": "tsc",
|
|
69
|
+
"test": "jest",
|
|
70
|
+
"example": "npm run build && ts-node examples/basic-usage.ts",
|
|
71
|
+
"example:chart": "npm run build && ts-node examples/birth-chart.ts",
|
|
72
|
+
"example:moshier": "npm run build && ts-node examples/moshier-ephemeris.ts",
|
|
73
|
+
"clean": "rm -rf dist build"
|
|
74
|
+
}
|
|
75
|
+
}
|