tempoch-js
ActiuJavaScript and WebAssembly bindings for astronomical time types, periods, and UTC conversions.
0 estrelles
0 forks
JavaScript
AGPL-3.0
Actualitzat fa 2 mesos
Per què existeix
tempoch-js brings the same time model used in Rust to JavaScript. The Node and browser packages stay aligned, so Julian dates, UTC, and periods behave the same in both places.
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.
Enllaços ràpids
Etiquetes
javascript wasm node browser time astronomy bindings