JSPM

holiday-br

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q54613F
  • License MIT

Brazilian holiday list and helper functions

Package Exports

  • holiday-br

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (holiday-br) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node Holiday BR

Brazilian holiday list and helper functions

Build Status

Installing

npm install holiday-pt

Usage

var
    holidays = require('holiday-br');

// Get a list of holidays between two dates
curYearHolidays = holidays.between(new Date(2015,0,1),new Date(2016,0,1));

// Check if a specific date is a holiday
if ( holidays.isHoliday(new Date(2048,4-1,25)) ) {
    console.log("Long live freedom!");
}