mingli-wasm-astrology-lite 1.0.1
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 +17 -0
- package/mingli_wasm.d.ts +70 -0
- package/mingli_wasm.js +301 -0
- package/mingli_wasm_bg.wasm +0 -0
- package/mingli_wasm_bg.wasm.d.ts +12 -0
- package/package.json +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# mingli-wasm-astrology-lite
|
|
2
|
+
|
|
3
|
+
Natal charts from planetary longitudes you supply: houses, cusps, aspects and signs, without the ephemeris. 90% smaller than carrying VSOP87D.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import init, { cast_one } from 'mingli-wasm-astrology-lite';
|
|
7
|
+
await init();
|
|
8
|
+
const chart = JSON.parse(cast_one('bazi', JSON.stringify({
|
|
9
|
+
year: 1990, month: 6, day: 15, hour: 14, minute: 30, tz: 8.0
|
|
10
|
+
})));
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Module size: 165487 bytes before compression. Every published profile has a byte
|
|
14
|
+
budget checked in at `scripts/wasm-budget.txt`; CI fails on a regression.
|
|
15
|
+
|
|
16
|
+
Same algorithms as the `mingli` crates on crates.io — one source, two shapes.
|
|
17
|
+
See https://github.com/goliajp/mingli.
|
package/mingli_wasm.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 由**调用方供给**的九个黄经排本命盘。位置的次序同 `mingli_astrology::BODY_NAMES`。
|
|
6
|
+
*
|
|
7
|
+
* 这一档存在的理由是一个实测数字:同一段排盘代码,位置本地算的产物 857,633 字节,
|
|
8
|
+
* 位置由调用方给的 79,863 字节,差 777,770(90.7%)——差的那份是 VSOP87D 的常量表。
|
|
9
|
+
* 浏览器里已经有几十 KB 的 JS 星历,把九个数递进来就省掉整整一份表;
|
|
10
|
+
* 顺带也省掉算它的时间,那是排一张盘里的九成七。
|
|
11
|
+
*
|
|
12
|
+
* 上升点、中天、整宫、分宫、相位、落座仍在这里算——省掉的只有「位置从哪来」。
|
|
13
|
+
*
|
|
14
|
+
* # Errors
|
|
15
|
+
* 两个 JSON 任一解析失败,或位置不是九个数时返回错误。
|
|
16
|
+
*/
|
|
17
|
+
export function astrology_with(query_json: string, longitudes_json: string): string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 全叶排盘(含 id/name/family/确定性谱/盘面)。入参为 [`mingli_contract::Query`] 的 JSON。
|
|
21
|
+
*
|
|
22
|
+
* # Errors
|
|
23
|
+
* query JSON 解析失败时返回错误。
|
|
24
|
+
*/
|
|
25
|
+
export function cast(query_json: string): string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 只排单片叶(按 id),省去其余叶(非占星叶还省掉 VSOP87)。未知 id 返回 `"null"`。
|
|
29
|
+
*
|
|
30
|
+
* # Errors
|
|
31
|
+
* query JSON 解析失败时返回错误。
|
|
32
|
+
*/
|
|
33
|
+
export function cast_one(id: string, query_json: string): string;
|
|
34
|
+
|
|
35
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
36
|
+
|
|
37
|
+
export interface InitOutput {
|
|
38
|
+
readonly memory: WebAssembly.Memory;
|
|
39
|
+
readonly astrology_with: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
40
|
+
readonly cast: (a: number, b: number) => [number, number, number, number];
|
|
41
|
+
readonly cast_one: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
42
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
43
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
44
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
45
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
46
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
47
|
+
readonly __wbindgen_start: () => void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
54
|
+
* a precompiled `WebAssembly.Module`.
|
|
55
|
+
*
|
|
56
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
57
|
+
*
|
|
58
|
+
* @returns {InitOutput}
|
|
59
|
+
*/
|
|
60
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
64
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
65
|
+
*
|
|
66
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
67
|
+
*
|
|
68
|
+
* @returns {Promise<InitOutput>}
|
|
69
|
+
*/
|
|
70
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/mingli_wasm.js
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/* @ts-self-types="./mingli_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 由**调用方供给**的九个黄经排本命盘。位置的次序同 `mingli_astrology::BODY_NAMES`。
|
|
5
|
+
*
|
|
6
|
+
* 这一档存在的理由是一个实测数字:同一段排盘代码,位置本地算的产物 857,633 字节,
|
|
7
|
+
* 位置由调用方给的 79,863 字节,差 777,770(90.7%)——差的那份是 VSOP87D 的常量表。
|
|
8
|
+
* 浏览器里已经有几十 KB 的 JS 星历,把九个数递进来就省掉整整一份表;
|
|
9
|
+
* 顺带也省掉算它的时间,那是排一张盘里的九成七。
|
|
10
|
+
*
|
|
11
|
+
* 上升点、中天、整宫、分宫、相位、落座仍在这里算——省掉的只有「位置从哪来」。
|
|
12
|
+
*
|
|
13
|
+
* # Errors
|
|
14
|
+
* 两个 JSON 任一解析失败,或位置不是九个数时返回错误。
|
|
15
|
+
* @param {string} query_json
|
|
16
|
+
* @param {string} longitudes_json
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
export function astrology_with(query_json, longitudes_json) {
|
|
20
|
+
let deferred4_0;
|
|
21
|
+
let deferred4_1;
|
|
22
|
+
try {
|
|
23
|
+
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
24
|
+
const len0 = WASM_VECTOR_LEN;
|
|
25
|
+
const ptr1 = passStringToWasm0(longitudes_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
26
|
+
const len1 = WASM_VECTOR_LEN;
|
|
27
|
+
const ret = wasm.astrology_with(ptr0, len0, ptr1, len1);
|
|
28
|
+
var ptr3 = ret[0];
|
|
29
|
+
var len3 = ret[1];
|
|
30
|
+
if (ret[3]) {
|
|
31
|
+
ptr3 = 0; len3 = 0;
|
|
32
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
33
|
+
}
|
|
34
|
+
deferred4_0 = ptr3;
|
|
35
|
+
deferred4_1 = len3;
|
|
36
|
+
return getStringFromWasm0(ptr3, len3);
|
|
37
|
+
} finally {
|
|
38
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 全叶排盘(含 id/name/family/确定性谱/盘面)。入参为 [`mingli_contract::Query`] 的 JSON。
|
|
44
|
+
*
|
|
45
|
+
* # Errors
|
|
46
|
+
* query JSON 解析失败时返回错误。
|
|
47
|
+
* @param {string} query_json
|
|
48
|
+
* @returns {string}
|
|
49
|
+
*/
|
|
50
|
+
export function cast(query_json) {
|
|
51
|
+
let deferred3_0;
|
|
52
|
+
let deferred3_1;
|
|
53
|
+
try {
|
|
54
|
+
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
55
|
+
const len0 = WASM_VECTOR_LEN;
|
|
56
|
+
const ret = wasm.cast(ptr0, len0);
|
|
57
|
+
var ptr2 = ret[0];
|
|
58
|
+
var len2 = ret[1];
|
|
59
|
+
if (ret[3]) {
|
|
60
|
+
ptr2 = 0; len2 = 0;
|
|
61
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
62
|
+
}
|
|
63
|
+
deferred3_0 = ptr2;
|
|
64
|
+
deferred3_1 = len2;
|
|
65
|
+
return getStringFromWasm0(ptr2, len2);
|
|
66
|
+
} finally {
|
|
67
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 只排单片叶(按 id),省去其余叶(非占星叶还省掉 VSOP87)。未知 id 返回 `"null"`。
|
|
73
|
+
*
|
|
74
|
+
* # Errors
|
|
75
|
+
* query JSON 解析失败时返回错误。
|
|
76
|
+
* @param {string} id
|
|
77
|
+
* @param {string} query_json
|
|
78
|
+
* @returns {string}
|
|
79
|
+
*/
|
|
80
|
+
export function cast_one(id, query_json) {
|
|
81
|
+
let deferred4_0;
|
|
82
|
+
let deferred4_1;
|
|
83
|
+
try {
|
|
84
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
85
|
+
const len0 = WASM_VECTOR_LEN;
|
|
86
|
+
const ptr1 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
87
|
+
const len1 = WASM_VECTOR_LEN;
|
|
88
|
+
const ret = wasm.cast_one(ptr0, len0, ptr1, len1);
|
|
89
|
+
var ptr3 = ret[0];
|
|
90
|
+
var len3 = ret[1];
|
|
91
|
+
if (ret[3]) {
|
|
92
|
+
ptr3 = 0; len3 = 0;
|
|
93
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
94
|
+
}
|
|
95
|
+
deferred4_0 = ptr3;
|
|
96
|
+
deferred4_1 = len3;
|
|
97
|
+
return getStringFromWasm0(ptr3, len3);
|
|
98
|
+
} finally {
|
|
99
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function __wbg_get_imports() {
|
|
103
|
+
const import0 = {
|
|
104
|
+
__proto__: null,
|
|
105
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
106
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
107
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
108
|
+
return ret;
|
|
109
|
+
},
|
|
110
|
+
__wbindgen_init_externref_table: function() {
|
|
111
|
+
const table = wasm.__wbindgen_externrefs;
|
|
112
|
+
const offset = table.grow(4);
|
|
113
|
+
table.set(0, undefined);
|
|
114
|
+
table.set(offset + 0, undefined);
|
|
115
|
+
table.set(offset + 1, null);
|
|
116
|
+
table.set(offset + 2, true);
|
|
117
|
+
table.set(offset + 3, false);
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
__proto__: null,
|
|
122
|
+
"./mingli_wasm_bg.js": import0,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function getStringFromWasm0(ptr, len) {
|
|
127
|
+
return decodeText(ptr >>> 0, len);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let cachedUint8ArrayMemory0 = null;
|
|
131
|
+
function getUint8ArrayMemory0() {
|
|
132
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
133
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
134
|
+
}
|
|
135
|
+
return cachedUint8ArrayMemory0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
139
|
+
if (realloc === undefined) {
|
|
140
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
141
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
142
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
143
|
+
WASM_VECTOR_LEN = buf.length;
|
|
144
|
+
return ptr;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let len = arg.length;
|
|
148
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
149
|
+
|
|
150
|
+
const mem = getUint8ArrayMemory0();
|
|
151
|
+
|
|
152
|
+
let offset = 0;
|
|
153
|
+
|
|
154
|
+
for (; offset < len; offset++) {
|
|
155
|
+
const code = arg.charCodeAt(offset);
|
|
156
|
+
if (code > 0x7F) break;
|
|
157
|
+
mem[ptr + offset] = code;
|
|
158
|
+
}
|
|
159
|
+
if (offset !== len) {
|
|
160
|
+
if (offset !== 0) {
|
|
161
|
+
arg = arg.slice(offset);
|
|
162
|
+
}
|
|
163
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
164
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
165
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
166
|
+
|
|
167
|
+
offset += ret.written;
|
|
168
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
WASM_VECTOR_LEN = offset;
|
|
172
|
+
return ptr;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function takeFromExternrefTable0(idx) {
|
|
176
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
177
|
+
wasm.__externref_table_dealloc(idx);
|
|
178
|
+
return value;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
182
|
+
cachedTextDecoder.decode();
|
|
183
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
184
|
+
let numBytesDecoded = 0;
|
|
185
|
+
function decodeText(ptr, len) {
|
|
186
|
+
numBytesDecoded += len;
|
|
187
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
188
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
189
|
+
cachedTextDecoder.decode();
|
|
190
|
+
numBytesDecoded = len;
|
|
191
|
+
}
|
|
192
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const cachedTextEncoder = new TextEncoder();
|
|
196
|
+
|
|
197
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
198
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
199
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
200
|
+
view.set(buf);
|
|
201
|
+
return {
|
|
202
|
+
read: arg.length,
|
|
203
|
+
written: buf.length
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
let WASM_VECTOR_LEN = 0;
|
|
209
|
+
|
|
210
|
+
let wasmModule, wasmInstance, wasm;
|
|
211
|
+
function __wbg_finalize_init(instance, module) {
|
|
212
|
+
wasmInstance = instance;
|
|
213
|
+
wasm = instance.exports;
|
|
214
|
+
wasmModule = module;
|
|
215
|
+
cachedUint8ArrayMemory0 = null;
|
|
216
|
+
wasm.__wbindgen_start();
|
|
217
|
+
return wasm;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
async function __wbg_load(module, imports) {
|
|
221
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
222
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
223
|
+
try {
|
|
224
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
225
|
+
} catch (e) {
|
|
226
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
227
|
+
|
|
228
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
229
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
230
|
+
|
|
231
|
+
} else { throw e; }
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const bytes = await module.arrayBuffer();
|
|
236
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
237
|
+
} else {
|
|
238
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
239
|
+
|
|
240
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
241
|
+
return { instance, module };
|
|
242
|
+
} else {
|
|
243
|
+
return instance;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function expectedResponseType(type) {
|
|
248
|
+
switch (type) {
|
|
249
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
250
|
+
}
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function initSync(module) {
|
|
256
|
+
if (wasm !== undefined) return wasm;
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
if (module !== undefined) {
|
|
260
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
261
|
+
({module} = module)
|
|
262
|
+
} else {
|
|
263
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const imports = __wbg_get_imports();
|
|
268
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
269
|
+
module = new WebAssembly.Module(module);
|
|
270
|
+
}
|
|
271
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
272
|
+
return __wbg_finalize_init(instance, module);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
async function __wbg_init(module_or_path) {
|
|
276
|
+
if (wasm !== undefined) return wasm;
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
if (module_or_path !== undefined) {
|
|
280
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
281
|
+
({module_or_path} = module_or_path)
|
|
282
|
+
} else {
|
|
283
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (module_or_path === undefined) {
|
|
288
|
+
module_or_path = new URL('mingli_wasm_bg.wasm', import.meta.url);
|
|
289
|
+
}
|
|
290
|
+
const imports = __wbg_get_imports();
|
|
291
|
+
|
|
292
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
293
|
+
module_or_path = fetch(module_or_path);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
297
|
+
|
|
298
|
+
return __wbg_finalize_init(instance, module);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export { initSync, __wbg_init as default };
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const astrology_with: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
5
|
+
export const cast: (a: number, b: number) => [number, number, number, number];
|
|
6
|
+
export const cast_one: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
7
|
+
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
8
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
9
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
10
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
11
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
12
|
+
export const __wbindgen_start: () => void;
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mingli-wasm-astrology-lite",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Natal charts from planetary longitudes you supply: houses, cusps, aspects and signs, without the ephemeris. 90% smaller than carrying VSOP87D.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": { "type": "git", "url": "git+https://github.com/goliajp/mingli.git" },
|
|
7
|
+
"keywords": ["astrology", "horoscope", "natal", "ephemeris", "wasm"],
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "mingli_wasm.js",
|
|
10
|
+
"module": "mingli_wasm.js",
|
|
11
|
+
"types": "mingli_wasm.d.ts",
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"files": ["mingli_wasm.js", "mingli_wasm_bg.wasm", "mingli_wasm.d.ts", "mingli_wasm_bg.wasm.d.ts", "README.md"]
|
|
14
|
+
}
|