Socket
Socket
Sign inDemoInstall

holiday-butler

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    holiday-butler

Get dates of holidays for any year in any country.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source




Site | NPM Module | GitHub Repo

holiday-butler is the official npm module of Holiday Butler, a free app for getting the dates of holidays for any year in any country.

Holiday Butler Works in Node AND browser environments

Yes, this module works in both Node and browser environments, including compatibility with Webpack and Browserify!

Features

  • Get all holidays for any year
  • Works in any country

Getting an API key

You can use so much of holiday-butler for free, but if you want to do some advanced stuff, you'll need an API key. You can get one by signing up for a Holiday Butler account.

Install Holiday Butler

Use the API

fetch('https://cdn.jsdelivr.net/npm/holiday-butler@latest/dist/holiday/US/2050.json')
.then(res => {
  if (res.status >= 200 && res.status < 300) {
    res.json()
    .then(function (holidays) {
      console.log('Holidays', holidays)
    })
  }
})

Keywords

FAQs

Last updated on 08 Aug 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc