fast-sunrise-sunset
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Fast-Sunrise-Sunset

This library is optimization of https://github.com/udivankin/sunrise-sunset for repeated large scale sunrise/sunset calculations for multiple location.

This library is probably NOT the library you're looking for. For one time or user driven sunrise/sunset calculation https://github.com/udivankin/sunrise-sunset has more user friendly interface.

For correct usage see src/__tests__





N.B. Some important bugs inherited from original lib where fixed. See https://github.com/udivankin/sunrise-sunset/issues/19#issuecomment-843575684

N.B. This library results deviate with up to two minutes from more complicated calculations from https://www.suncalc.org/ and alike, but I find the results useful given how stretchy definition of sunrise/sunset can be.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    2
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i fast-sunrise-sunset

Weekly Downloads

1

Version

1.1.1

License

LGPL-2.1

Unpacked Size

7.85 kB

Total Files

4

Last publish

Collaborators

  • sdrsdr