Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
shamsi-holidays
Advanced tools
Holidays in Iran calender
You can get all dates of Holidays beasd on www.time.ir
shamsi-holidays provides dates of holidays for Iran, check the any specific date is holiday or not beased on online request
or static data
.
const { getHolidaysYearOnline } = require('shamsi-holidays');
async function holiday() {
const result = await getHolidaysYearOnline('1400');
console.log(result);
}
holiday()
There are dates of holidays for 1400-1406
const { getHolidays } = require('shamsi-holidays');
async function holiday() {
const result = await getHolidays('1400');
console.log(result);
}
holiday()
const { isHolidaysOnline } = require('shamsi-holidays');
// date format = jYYYY/jMM/jDD | 1400/01/02
const date = '1400/01/02'
async function holiday() {
const result = await isHolidaysOnline(date);
console.log(result);
}
holiday()
const { isHoliday } = require('shamsi-holidays');
// date format = jYYYY/jMM/jDD | 1400/01/02
const date = '1400/01/02'
async function holiday() {
const result = await isHoliday(date);
console.log(result);
}
holiday()
const { getHolidaysYearAndMonthOnline } = require('shamsi-holidays');
// month should be = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'];
async function holiday() {
const result = await getHolidaysYearAndMonthOnline('1400','1');
console.log(result);
}
holiday()
const { getHolidaysYearAndMonthsOnline } = require('shamsi-holidays');
// month should be = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'];
async function holiday() {
const result = await getHolidaysYearAndMonthsOnline('1400', ['1',12'] );
console.log(result);
}
holiday()
FAQs
This module provides dates of holidays for Iran based on Time.ir
The npm package shamsi-holidays receives a total of 15 weekly downloads. As such, shamsi-holidays popularity was classified as not popular.
We found that shamsi-holidays demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.