JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q24142F
  • License MIT

Get moondays. Full and new moon days. For Ashtanga Yogis ^__^

Package Exports

  • moondays

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (moondays) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

moondays

Get a number of moondays(full and new moon dates) based on a start date and when you practice in the day.

import moondays from "moondays"


const today = new Date("2015-08-21")
const days = moondays(4, today, 23, 0)


days === [

  { date: moment("Sat Aug 29 2015 23:00:00 GMT+0200 (W. Europe Summer Time)"),
    illumination: {
      fraction: 0.9996415119304594, ...} },

  { date: moment("Sat Sep 12 2015 23:00:00 GMT+0200 (W. Europe Summer Time)"),
    illumination: {
      fraction: 0.0014034815669225487, ...} },

  { date: moment("Sun Sep 27 2015 23:00:00 GMT+0200 (W. Europe Summer Time)"),
    illumination: {
      fraction: 0.9991898770162256, ...} },

  { date: moment("Mon Oct 12 2015 23:00:00 GMT+0200 (W. Europe Summer Time)"),
    illumination: {
      fraction: 0.00040409245470907074, ...} }

]