New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wucpeng-tools

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wucpeng-tools - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

calendar.js

3

index.js

@@ -1,1 +0,2 @@

module.exports.holiday = require('./holiday.js');
module.exports.holiday = require('./holiday.js');
module.exports.calendar = require('./calendar.js');
{
"name": "wucpeng-tools",
"version": "1.0.2",
"version": "1.0.3",
"description": "time date holiday lunar",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,4 +11,38 @@ ## wucpeng-tools ##

## Feature ##
## Feature holiday##
holiday 判断假期 需要每年添加 供当前公司场景使用
const tools = require('wucpeng-tools');
const holiday = tools.holiday;
let time = new Date();
console.log(holiday.isHolidayDate(now));
## Feature calendar ##
const tools = require('wucpeng-tools');
const calendar = tools.calendar;
let time = new Date();
console.log(calendar.solar2lunarDate(1986,3,7));
{
lYear: 1986,
lMonth: 1,
lDay: 27,
Animal: '虎',
IMonthCn: '正月',
IDayCn: '廿七',
cYear: 1986,
cMonth: 3,
cDay: 7,
gzYear: '丙寅',
gzMonth: '辛卯',
gzDay: '庚戌',
isToday: false,
isLeap: false,
nWeek: 5,
ncWeek: '星期五',
isTerm: false,
Term: null,
astro: '双鱼座'
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc