celestial-moon

1.0.2 • Public • Published

Node.js CI

celestial-moon

Calculate the moon phase.

This is an approximate calculation.

Install

$ npm i celestial-moon

Use

const moon = require('celestial-moon');

const phase = moon.calculate(2020, 11, 10, 9, 30, 0, 0);

console.log(phase.age); //since last new moon
console.log(phase.name); //'waning-crescent'

Contribute

Please feel free to contribute by creating a Pull Request including test code.

References

Package Sidebar

Install

npm i celestial-moon

Weekly Downloads

5

Version

1.0.2

License

ISC

Unpacked Size

7.29 kB

Total Files

7

Last publish

Collaborators

  • oyve