↩ī¸Ž

🌕 the-moon

Show me the moon 🌑🌒🌓🌔🌕🌖🌗🌘🌑

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

Get today's moon

moon(); // 🌗 (today's moon)

Choose a different date

moon(2017); // 🌑 (today in 2017)
moon(2017, 3, 14); // 🌕 (a specific date)

Choose from available formats (moon.FORMATS) default is icon

moon(2017, 3, 14, {format: 'code'}); // 'full-moon'
moon({format: 'name'}); // 'Last Quarter Moon'
format example
icon 🌕
code full
name Full Moon

Moon Glossary

Icon Name Code
🌑 New Moon new
🌒 Waxing Crescent Moon waxing-crescent
🌓 Quarter Moon quarter
🌔 Waxing Gibbous Moon waxing-gibbous
🌕 Full Moon full
🌖 Waning Gibbous Moon waning-gibbous
🌗 Last Quarter Moon last-quarter
🌘 Waning Crescent Moon waning-crescent

CLI

npx the-moon