1.0.2 • Published 9 months ago

@datahandler/date-utils v1.0.2

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

@datahandler/date-utils

A collection of handy JavaScript date utilities.

Installation

npm install @datahandler/date-utils

Usage

import { getYears } = from '@datahandler/date-utils';

// Example: Get an array of years
console.log(getYears(2000)); // [2000, 2001, ..., current year]

// Example: Use a callback
getYears(2000, year => {
    console.log(`<option value="${year}">${year}</option>`);
});
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago