Skip to content

t1mwillis/simple-moonphase-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-moonphase-js

npm

A simple tool to calculate the phase of the moon given a date.

Install

$ npm install @t1mwillis/simple-moonphase-js

Usage

const moonPhase = require("@t1mwillis/simple-moonphase-js");

const date = new Date('June 07, 2019');

moonPhase(date);
//=> "Waxing Crescent"

moonPhase(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:3:41)
//    at <anonymous>:1:1

About

A simple js module for calculating moonphase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published