🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

business-hours

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

business-hours

Checks whether it's in business hours right now

1.0.3
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Determine whether it's in business hours or not.

Usage

Just:

var businessHours = require('is-in-business-hours')()

Or to specify custom business hours:

var businessHours = require('is-in-business-hours')(9, 18)

Then just:

var isInBusinessHours = businessHours.isBusinessHours()

or

var isOutOfHours = businessHours.isOutOfHours()

FAQs

Package last updated on 26 Apr 2017

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