Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@datafire/canada_holidays_ca
Advanced tools
Client library for Canada Holidays API
npm install --save @datafire/canada_holidays_ca
let canada_holidays_ca = require('@datafire/canada_holidays_ca').create();
.then(data => {
console.log(data);
});
This API that lists all 28 public holidays for all 13 provinces and territories in Canada, including federal holidays.
Returns a welcome message.
canada_holidays_ca.api.v1.get(null, context)
This action has no parameters
object
object
object
string
: Domain to get all holidaysobject
string
: Domain to get all provincesobject
string
: Root domainstring
: A welcome messageReturns Canadian public holidays. Each holiday lists the regions that observe it.
canada_holidays_ca.api.v1.holidays.get({}, context)
object
string
: A calendar yearstring
(values: 1, 0, true, false): A boolean parameter. If true, will return only federal holidays. If false, will return no federal holidays.object
array
Returns one Canadian statutory holiday by integer id. Returns a 404 response for invalid ids.
canada_holidays_ca.api.v1.holidays.holidayId.get({
"holidayId": 0
}, context)
object
string
: A calendar yearinteger
: Primary key for a holidayobject
Returns provinces and territories in Canada. Each province or territory lists its associated holidays.
canada_holidays_ca.api.v1.provinces.get({}, context)
object
string
: A calendar yearobject
array
Returns a Canadian province or territory with its associated holidays.
canada_holidays_ca.api.v1.provinces.provinceId.get({
"provinceId": ""
}, context)
object
string
: A calendar yearstring
(values: AB, BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT): A Canadian province abbreviationobject
object
string
: An error messageinteger
: An HTTP status codestring
: A UTC ISO timestampobject
: A Canadian holiday. Includes a name, date, and a list of regions that observe this holiday.
string
: ISO datestring
(values: 0, 1, true, false): Whether this holiday is observed by federally-regulated industries.integer
: Primary key for a holidaystring
: French namestring
: English namearray
FAQs
DataFire integration for Canada Holidays API
The npm package @datafire/canada_holidays_ca receives a total of 1 weekly downloads. As such, @datafire/canada_holidays_ca popularity was classified as not popular.
We found that @datafire/canada_holidays_ca 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.