Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
se-bank-holidays
Advanced tools
Swedish Bank Holidays (sv. bankhelgdagar) implementation in Typescript
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 318 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.