1.2.1 • Published 4 months ago

business-moment v1.2.1

Weekly downloads
367
License
MIT
Repository
github
Last release
4 months ago

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.

1.2.1

4 months ago

1.2.0

4 months ago

1.1.9

3 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago