moon-sighting/.github/wiki/api/functions/initKernels.md
Aric Camarata 2992dcee21 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:41:59 -04:00

921 B

moon-sighting v1.1.1


moon-sighting / initKernels

Function: initKernels()

initKernels(config?): Promise<void>

Defined in: api/index.ts:121

Initialize the kernel engine from an already-downloaded kernel. Must be called before getMoonSightingReport() or getSunMoonEvents().

Supports three source modes:

  • File path (Node.js): initKernels({ planetary: { type: 'file', path: '/path/to/de442s.bsp' } })
  • ArrayBuffer (browser): initKernels({ planetary: { type: 'buffer', data: buf, name: 'de442s.bsp' } })
  • Auto (Node.js): initKernels() — downloads and caches automatically

Parameters

config?

KernelConfig

Kernel source configuration. Defaults to auto-download.

Returns

Promise<void>