Socket
Socket
Sign inDemoInstall

se-bank-holidays

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    se-bank-holidays

Swedish Bank Holidays (sv. bankhelgdagar) implementation in Typescript


Version published
Weekly downloads
434
increased by167.9%
Maintainers
1
Install size
98.3 kB
Created
Weekly downloads
 

Readme

Source

Swedish Bank Holidays

npm NPM

Typescript library for looking up Swedish Bank Holidays (bankhelgdagar). Zero dependencies. Providing an easy to use API to check whether a specific date is a bank holiday (or bank day) in Sweden, and also offers basic date subtraction / addition support.

Getting started

Node

Install using npm:

npm install se-bank-holidays

Then require it to any module:

const holidays = require("se-bank-holidays");

const test = holidays.isHoliday(new Date("2021-12-24")); // => true

Browser

To use the library in browser, use generally available CDN solutions, or download and use distribution files directly in your code (dist/index.js, dist/index.min.js or dist/index.mjs).

TODO

[ ] Improved documentation [ ] Timezone support (consider implementing https://github.com/js-joda/js-joda)

Credits

Creds to https://github.com/ryanseys/lune for inspiring on the lunar calculation utiility, use in this library.

License

MIT

FAQs

Last updated on 26 Dec 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