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

@monsterbilligt/date-fns-holidays

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monsterbilligt/date-fns-holidays

Provides replacement functions for `date-fns@2.x` that take into account Danish holidays.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

date-fns-holidays

Provides replacement functions for date-fns@2.x that take into account Danish holidays.

Installation

npm i @monsterbilligt/date-fns-holidays

Usage

import { addBusinessDays, differenceInBusinessDays } from '@monsterbilligt/date-fns-holidays'

const newDate = addBusinessDays(new Date(), 10) // Adds 10 business days to today

const diff = differenceInBusinessDays(newDate, new Date()) // Should be 10

FAQs

Package last updated on 07 Jun 2021

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