Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
se-bank-holidays
Advanced tools
Readme
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.
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
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
).
[ ] Improved documentation [ ] Timezone support (consider implementing https://github.com/js-joda/js-joda)
Creds to https://github.com/ryanseys/lune for inspiring on the lunar calculation utiility, use in this library.
MIT
FAQs
Swedish Bank Holidays (sv. bankhelgdagar) implementation in Typescript
The npm package se-bank-holidays receives a total of 429 weekly downloads. As such, se-bank-holidays popularity was classified as not popular.
We found that se-bank-holidays demonstrated a healthy version release cadence and project activity because the last version was released less than 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.