UNPKG

sweph

Version:

The definitive Swiss Ephemeris bindings for Node.js

53 lines (52 loc) 1.59 kB
{ "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" } }