1.0.5 • Published 4 years ago

themondays v1.0.5

Weekly downloads
-
License
(Apache-2.0 AND M...
Repository
-
Last release
4 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

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago