business-moment

1.2.1 • Public • Published

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.

Dependencies (5)

Dev Dependencies (5)

Package Sidebar

Install

npm i business-moment

Weekly Downloads

2,415

Version

1.2.1

License

MIT

Unpacked Size

7.69 kB

Total Files

10

Last publish

Collaborators

  • pagarme-opensource
  • matheusvellone
  • lucianopf
  • marquinhoalm
  • zignd
  • cigoli
  • geraldofada-pagarme
  • gabilleone
  • ramonpaolo-pagarme
  • davidsmedeiros
  • andre.lsilva
  • bruno.mduarte
  • nathaliacrelier
  • jonasnt17
  • danielponde
  • joaovjs-pagarme
  • rpsantos1987
  • prifight
  • carolinaaguelera
  • gabrielpagarme
  • magnomoreira