New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dayjs-range-extend

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dayjs-range-extend

Range extends For dayjs

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
1K
-15.18%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

dayjs

FAQs

Package last updated on 22 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts