Socket
Socket
Sign inDemoInstall

business-hours

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    business-hours

Checks whether it's in business hours right now


Version published
Weekly downloads
10
increased by150%
Maintainers
1
Install size
1.29 kB
Created
Weekly downloads
 

Readme

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

Last updated on 26 Apr 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc