Socket
Socket
Sign inDemoInstall

business-moment

Package Overview
Dependencies
53
Maintainers
17
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    business-moment

Business calendar momentjs plugin


Version published
Maintainers
17
Install size
10.7 MB
Created

Readme

Source

business-moment

Build Status Coverage Status

Helpers for dealing with business days. Uses business-calendar as source.

Configuration

You can change the default configs as following:

bm.configure({
	source: 'http'
});

Sources

There are currenctly two sources, static uses a version of business-calendar installed as an npm dependency of this package.

http makes GET HTTP request, by default uses GitHub Pages as source(beware of usage limits).

Caching

You can change the cacheLifetime to change by how much time an year information can be used before being considered invalid.

Helpers

queryDateInformation(country, date, options)

Returns information from business-calendar about this day.

isBusinessDay(country, date, options)

Returns if the supplied date is a business day.

nextBusinessDay(country, date, options)

Returns the next business day after day.

License

Check here.

Keywords

FAQs

Last updated on 11 Jan 2024

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