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.7 to 1.0.9

lib/passwdCode.js

3

index.js

@@ -6,2 +6,3 @@ module.exports.holiday = require('./lib/holiday.js');

module.exports.regionCode = require('./lib/regionCode.js');
module.exports.areaJS = require('./lib/area.js');
module.exports.areaJS = require('./lib/area.js');
module.exports.passwdCode = require('./lib/passwdCode.js');
{
"name": "wucpeng-tools",
"version": "1.0.7",
"version": "1.0.9",
"description": "time date holiday lunar",

@@ -31,2 +31,3 @@ "main": "index.js",

"month-days": "^2.1.0",
"node-uuid": "^1.4.8",
"sprintf": "^0.1.5",

@@ -33,0 +34,0 @@ "underscore": "^1.9.1"

@@ -55,2 +55,20 @@ ## wucpeng-tools ##

## Feature passwdCode ##
const tools = require('wucpeng-tools');
const passwdCode = tools.passwdCode;
功能 | 变量 | 参数 | 返回值
-----|------|-----|-----
生成6位数字密码 | createPasswd | | string
生成多维复杂密码 | generatePassword | | string
计算密码复杂度 | passwordStringMode | string | number
计算唯一随机字符串 | getUuid | | string
获取随机数 | getRandomInt | min max | number
从begin 到 end的一个随机数,不包括end | randomByRange | number
限制最大数字 | limitMax | number, max | number
限制数字范围 | clamp | number, min, max | number
## Feature zip ##

@@ -261,7 +279,5 @@ const tools = require('wucpeng-tools');

areaJS.getAreaName('990101');
getAreaName 测试1
areaJS.getProvinceCityCodes('990101');
getProvinceCityCodes [ { code: '990000', name: '孩子通测试' },

@@ -276,3 +292,2 @@ { code: '990100', name: '测试' },

areaJS.getAreaCodes('990101');
getAreaCodes [ '990000',

@@ -287,3 +302,2 @@ '990100',

areaJS.getAreaCodesByCodes(['990101', '530901']);
getAreaCodesByCodes [ '990000',

@@ -290,0 +304,0 @@ '990100',

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