1.0.5 • Published 5 years ago

themondays v1.0.5

Weekly downloads
-
License
(Apache-2.0 AND M...
Repository
-
Last release
5 years ago

the mondays

1216 587

A generator that yields every monday from now until a specific cutoff.

const main = require('./')

const limit = Date.now() - (main.oneday * 28)

const weeks = []
for (const week of main(limit)) {
  weeks.push(week)
}
console.log(weeks)

The times are yielded as integers since that is what is best for performance. They can easily be converted to a datetime object with new Date(week).

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago