![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
holidays-calendar-brazil
Advanced tools
Library for retrieving the Brazilian Holidays' calendar.
This is a library for retrieving the Brazilian Holidays' Calendar.
You can use it as a Node.js module or in browser.
If you use NPM, then you can install it with npm install holidays-calendar-brazil
. Othewise, you can download the latest release and use it in your browser or in other Javascript-based projects.
var calendar = require("holidays-calendar-brazil");
console.log('The total number of holidays in 2020 is '+calendar.Year(2020).total);
<script src="../node_modules/holidays-calendar/dist/HolidaysCalendar.js"></script>
<script src="HolidaysCalendar-brazil.js" charset="utf-8"></script>
<script>
console.log('The total number of holidays in 2020 is '+HolidaysCalendar.Year(2020).total);
</script>
Retrieves information about holidays in year.
year: integer, required. Year reference.
return: Mixed. Object with structure: {total: integer, months: array of integer}
when there are holidays within that year; False when there are no holidays in the given year.
var calendar = require("holidays-calendar-brazil");
var data = calendar.Year(2020);
\\data equals { months: [ 1, 2, 4, 5, 6, 9, 10, 11, 12 ], total: 11 }
Retrieves information about holidays in a specific month.
year: integer, required. Year reference.
month: integer, required. Month reference (January=1).
return: Mixed. Object with structure: {total: integer, days: array of integer}
when there are holidays within that month; False when there are no holidays in the given month.
var calendar = require("holidays-calendar-brazil");
var data = calendar.Month(2020, 2);
\\data equals { days: [ 24, 25 ], total: 2 }
Retrieves information about a holiday in a specific date.
year: integer, required. Year reference.
month: integer, required. Month reference (January=1).
day: integer, required. Day reference.
return: Mixed. String representing the holiday name if the given date corresponds to a holiday according to the calendar in use; False when the date isn't a holiday.
var calendar = require("holidays-calendar-brazil");
var data = calendar.Day(2020, 2, 25);
\\data equals 'Carnaval'
FAQs
Library for retrieving the Brazilian Holidays' calendar.
We found that holidays-calendar-brazil demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.