Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
cn-workday
Advanced tools
获取中国工作日情况
$ npm install cn-workday
Or
$ yarn add cn-workday
import { isWorkday, getWorkdays, getWorkdaysBetween } from 'cn-workday';
isWorkday(); // 返回今天是否是工作日
isWorkday('2022-10-08'); // true
isWorkday(new Date('2022-10-08')); // true
getWorkdays(); // 返回本周的工作日数组
getWorkdays('2022-10-08'); // 返回 2022-10-08 所在周的工作日数组
getWorkdays('2022-10-08', 'Month'); // 返回 2022-10-08 所在月份的工作日数组
getWorkdaysBetween('2022-10-01', '2022-10-31'); // 返回2022-10-01与2022-10-31之间的工作日数组
node使用
const { isWorkday, getWorkdays, getWorkdaysBetween } = require('cn-workday');
isWorkday(); // 返回今天是否是工作日
getWorkdays(); // 返回本周的工作日数组
getWorkdaysBetween('2022-10-01', '2022-10-31'); // 返回2022-10-01与2022-10-31之间的工作日数组
判断一个日期是否为工作日
获取一个日期所在周|月的工作日数组
获取两个日期之间的工作日数组
FAQs
china workday
The npm package cn-workday receives a total of 8 weekly downloads. As such, cn-workday popularity was classified as not popular.
We found that cn-workday demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.