dayjs-range-extend
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Date Range Module Based on Day.js

NPM Version

Description

dayjs-range-extend is an extended module based on Day.js (can use the function of Day.js) that provides a date range.

Built with TypeScript and Maintains stability based on Unit-Test (used Jest)

Installation

$ npm i --save dayjs-range-extend

How to use

import dayjsRange from 'dayjs-range-extend';

const date_range_first = dayjsRange('2022-01-01', '2022-01-05');
const date_range_second = dayjsRange('2022-01-04', '2022-01-10');

console.log(
  date_range_first.isOverlap(date_range_second);
); // => true

Documentaion

Link

Package Sidebar

Install

npm i dayjs-range-extend

Weekly Downloads

343

Version

1.0.4

License

MIT

Unpacked Size

9.16 kB

Total Files

5

Last publish

Collaborators

  • imwh0im