1.1.0 • Published 5 years ago

the-moon v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

🌕 the-moon npm.io npm.io

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'
formatexample
icon🌕
codefull
nameFull Moon

Moon Glossary

IconNameCode
🌑New Moonnew
🌒Waxing Crescent Moonwaxing-crescent
🌓Quarter Moonquarter
🌔Waxing Gibbous Moonwaxing-gibbous
🌕Full Moonfull
🌖Waning Gibbous Moonwaning-gibbous
🌗Last Quarter Moonlast-quarter
🌘Waning Crescent Moonwaning-crescent

CLI

npm.io

npx the-moon