Skip to content

Latest commit

Β 

History

History

the-moon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸŒ• 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