Skip to main content

tempoch-js

Actiu

JavaScript and WebAssembly bindings for astronomical time primitives: Julian Date, Modified Julian Date, UTC conversion, and periods.

0 estrelles
0 forks
JavaScript
AGPL-3.0
Actualitzat avui

Per què existeix

tempoch-js brings Siderust’s typed astronomical time model to JavaScript. The workspace ships aligned Node and browser packages that preserve the same strongly-typed Julian date, UTC, and period concepts used by the Rust backend.

Funcionalitats clau

  • Node package: @siderust/tempoch
  • Browser/WASM package: @siderust/tempoch-web
  • JulianDate, ModifiedJulianDate, and Period APIs
  • Interop with qtty-js quantity objects
  • TypeScript declarations for both targets

Primers passos

npm install @siderust/tempoch @siderust/qtty

const { JulianDate } = require('@siderust/tempoch');
const { Hours } = require('@siderust/qtty/units');

const jd = JulianDate.j2000();
const later = jd.add(Hours(6));
console.log(later.toDate().toISOString());

Contribuir

Donem la benvinguda a les contribucions! Aquí tens com pots ajudar:

  • 1 Fes un fork del repositori i crea la teva branca des de main
  • 2 Fes els teus canvis i afegeix tests si s'escau
  • 3 Assegura't que tots els tests passen amb cargo test
  • 4 Envia un pull request amb una descripció clara

Llicència

Aquest projecte està llicenciat sota la llicència AGPL-3.0. Consulta el fitxer LICENSE per a més detalls.

Etiquetes

javascript wasm node browser time astronomy bindings