1.0.2 • Published 9 months ago

fn-date-range v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

FN Date Range

How does it work?

  • No string manipulation. Calculation is based on MS

  • O(n) Complexity

Installation

npm i fn-date-range
  • Signature

(end: number, start: number = 0) => string[];
  • Usage

import getDatesInRange from 'fn-date-range';

// dates of the next 90 days
const tomorrow = getDatesInRange(90);

// dates of the last 30 days
const past = getDatesInRange(0, -30);

// dates of the last 30 and next 90 days
const range = getDatesInRange(90, -30);

License

MIT

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago