colombian-holidays 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
@@ -264,7 +264,7 @@ The package provides four helper functions:
|
|
264
264
|
Returns the list of all Colombian holidays for a given year.
|
265
265
|
|
266
266
|
```js
|
267
|
-
import { getHolidaysByYear } from "colombian-holidays
|
267
|
+
import { getHolidaysByYear } from "colombian-holidays";
|
268
268
|
|
269
269
|
const holidays = getHolidaysByYear(2025);
|
270
270
|
```
|
@@ -290,7 +290,7 @@ This function uses a shared in-memory cache and is a preferable option to `colom
|
|
290
290
|
Returns `true` if the given date is a colombian holiday, otherwise returns `false`.
|
291
291
|
|
292
292
|
```js
|
293
|
-
import { isHoliday } from "colombian-holidays
|
293
|
+
import { isHoliday } from "colombian-holidays";
|
294
294
|
|
295
295
|
const date = new Date("2018-01-01");
|
296
296
|
|
@@ -306,7 +306,7 @@ if (isHoliday(date)) {
|
|
306
306
|
Similar to `isHoliday` but will return the corresponding holiday for a given date or `null` if there is no matching holiday.
|
307
307
|
|
308
308
|
```js
|
309
|
-
import { getHoliday } from "colombian-holidays
|
309
|
+
import { getHoliday } from "colombian-holidays";
|
310
310
|
|
311
311
|
const date = new Date("2018-01-01");
|
312
312
|
|
@@ -332,7 +332,7 @@ const newYearAsDate = getHoliday(date, { valueAsDate: true });
|
|
332
332
|
Returns an array with the colombian holidays within two dates:
|
333
333
|
|
334
334
|
```js
|
335
|
-
import { holidaysWithinInterval } from "colombian-holidays
|
335
|
+
import { holidaysWithinInterval } from "colombian-holidays";
|
336
336
|
|
337
337
|
const start = new Date("2021-01-01");
|
338
338
|
const end = new Date("2021-01-11");
|