Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

business-moment

Package Overview
Dependencies
Maintainers
17
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

business-moment

Business calendar momentjs plugin

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.1K
increased by63.28%
Maintainers
17
Weekly downloads
 
Created
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

Package last updated on 11 Jan 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc