Skip to content

Commit 7b1338d

Browse files
authored
Merge pull request #14 from jasonsturges/javascript
JavaScript refactor
2 parents 24e997e + 19f4054 commit 7b1338d

17 files changed

Lines changed: 266 additions & 1237 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const phase = Moon.lunarPhase();
9393

9494
### Lunar Phase
9595

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

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

116116
const date = new Date();
117-
Moon.lunarPhaseEmoji(date, Hemisphere.Northern);
117+
Moon.lunarPhaseEmoji(date, Hemisphere.NORTHERN);
118118
```
119119

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

133-
Moon.emojiForLunarPhase(LunarPhase.FirstQuarter, Hemisphere.Southern);
133+
Moon.emojiForLunarPhase(LunarPhase.FIRST_QUARTER, Hemisphere.SOUTHERN);
134134
```
135135

136136
### Waxing

0 commit comments

Comments
 (0)