Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

se-bank-holidays

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

se-bank-holidays

Swedish Bank Holidays (sv. bankhelgdagar) implementation in Typescript

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
325
decreased by-65.57%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 26 Dec 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc