Skip to content

Commit

Permalink
Merge pull request #14 from jasonsturges/javascript
Browse files Browse the repository at this point in the history
JavaScript refactor
  • Loading branch information
jasonsturges authored May 25, 2021
2 parents 24e997e + 19f4054 commit 7b1338d
Show file tree
Hide file tree
Showing 17 changed files with 266 additions and 1,237 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const phase = Moon.lunarPhase();

### Lunar Phase

To get the current lunar phase from the `LunarPhase` enum (ex: "Full")
To get the current lunar phase from the `LunarPhase` enum (ex: "FULL")

```js
const phase = Moon.lunarPhase();
Expand All @@ -114,7 +114,7 @@ import { Moon } from "lunarphase-js";
import { Hemisphere } from "lunarphase-js";

const date = new Date();
Moon.lunarPhaseEmoji(date, Hemisphere.Northern);
Moon.lunarPhaseEmoji(date, Hemisphere.NORTHERN);
```

To get emoji for other lunar phases, pass a `LunarPhase` enum:
Expand All @@ -130,7 +130,7 @@ import { Moon } from "lunarphase-js";
import { LunarPhase } from "lunarphase-js";
import { Hemisphere } from "lunarphase-js";

Moon.emojiForLunarPhase(LunarPhase.FirstQuarter, Hemisphere.Southern);
Moon.emojiForLunarPhase(LunarPhase.FIRST_QUARTER, Hemisphere.SOUTHERN);
```

### Waxing
Expand Down
Loading

0 comments on commit 7b1338d

Please sign in to comment.