-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
52 lines (52 loc) · 1.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "sweph",
"version": "2.10.3-4",
"description": "The definitive Swiss Ephemeris bindings for Node.js",
"keywords": [
"sweph",
"swiss",
"ephemeris",
"astrology",
"astronomy",
"swisseph",
"node"
],
"homepage": "https://github.com/timotejroiko/sweph",
"bugs": "https://github.com/timotejroiko/sweph/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/timotejroiko/sweph.git"
},
"funding": "https://github.com/timotejroiko/sweph?sponsor=1",
"license": "(AGPL-3.0-or-later OR LGPL-3.0-or-later)",
"author": "Timotej Valentin Rojko",
"exports": {
"require": "./index.js",
"import": "./index.mjs",
"types": "./index.d.ts"
},
"main": "index.js",
"types": "./index.d.ts",
"files": [
"./index.js",
"./index.mjs",
"./index.d.ts",
"./constants.js",
"./binding.gyp",
"./swisseph",
"./src/functions",
"./src/sweph.cpp",
"./src/sweph.h"
],
"scripts": {
"preinstall": "node -e \"const { readdirSync, readFileSync, writeFileSync } = require('fs'); const file = readdirSync('./src/functions').map((x,i) => readFileSync('./src/functions/' + x, 'utf8').replace(/args/g, 'args' + i).replace('#include <sweph.h>', '')).reduce((a,b) => a + b, '#include <sweph.h>'); writeFileSync('./src/functions.cpp', file, 'utf8');\"",
"install": "node-gyp rebuild && npm run test",
"test": "node -e \"const s = require('./'); const c = s.calc(2222222,0,4); console.log('OK')\""
},
"dependencies": {
"node-addon-api": "*"
},
"devDependencies": {
"eslint": "^8.44.0"
}
}