Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/xiaoxuan6/chinese-holidays-api
提供中国休假或者工作日查询
go run main.go
export HOLIDAY_PORT=9002
go run main.go
docker run --name=holidays -p 80:80 -d ghcr.io/xiaoxuan6/chinese-holidays-api/chinese-holidays-api:latest
docker run --name=holiday -e HOLIDAY_PORT=9002 -p 9002:9002 -d ghcr.io/xiaoxuan6/chinese-holidays-api/chinese-holidays-api:latest
bash <(curl -sSL https://github-mirror.us.kg/https://github.com/xiaoxuan6/chinese-holidays-api/blob/main/holidays.sh) install
bash <(curl -sSL https://github-mirror.us.kg/https://github.com/xiaoxuan6/chinese-holidays-api/blob/main/holidas.sh) uninstall
查询 2024-08-06
是否是工作日
curl http://127.0.0.1/api/holidays/2024-08-06
or
curl http://127.0.0.1/api/holidays?date=2024-08-06
{
"code": 200,
"date": "2024-08-06", <- version v0.0.2
"is_holiday": false,
"is_working_day": true,
"lunar_date": "七月初二日", <- version v0.0.3
"lunar_year": "甲辰年", <- version v0.0.4
"msg": "query ok",
"weekday": "星期一", <- version v0.0.2
"zh_year": "龙年" <- version v0.0.4
}
返回参数:
字段 | 描述 |
---|---|
code | 返回状态值(200:表示成功,500:表示失败) |
msg | 描述 |
date | 查询日期 |
lunar_date | 农历日期 |
lunar_year | 农历年份 |
is_holiday | 是否是节假日 |
is_working_day | 是否是工作日 |
weekday | 星期几 |
zh_year | 生肖年份 |
FAQs
Unknown package
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.