
Security News
/Research
Coordinated npm and PyPI Campaign Typosquats Popular Secure Payment Apps
Socket uncovered 17 malicious npm and PyPI packages typosquatting Paysafe, Skrill, and Neteller SDKs to steal developer secrets.
@wang-weilin/tools
Advanced tools
木木的工具库,后续继续添加常用方法库
工具库会覆盖常用的方法,目前比较少,待后续继续添加
啦啦啦啦
# 安装
npm i @wang-weilin/tools
#使用
const tools = require('@wang-weilin/tools')
# getQueryObject-url解析的使用方法
const parmas = tools.getQueryObject('https://www.baidu.com?&name=百度&time=123')
parmas = {
name: 百度,
time: 123
}
# debounce-防抖的使用方法
tools.debounce(function(){},1000)
# deepClone-深克隆的使用方法
let proObj = {}
const obj = tools.deepClone(proObj)
# ShiftObjKeyValue-对象key-value交换的使用方法
let proObj = {
1:男,
2:女
}
const obj = tools.deeShiftObjKeyValuepClone(proObj)
obj = {
男: 1,
女: 2
}
# formatTenThousand-格式转换11000,使用1.10万表示
const num = tools.formatTenThousand(11000)
# formatThousand-格式转换11000,使用1.10k表示
const num = tools.formatThousand(1100)
# intervalNum-格式转换1234567,使用123,456,7表示
const num = tools.intervalNum(1234567)
# isCardId-身份证校验
onnst carId = ****;
const bool = tools.isCardId(carId)
# isPhoneNo-手机号校验
onnst phone = 15539991111;
const bool = tools.isPhoneNo(phone)
# isEmail-邮箱校验
onnst qq = 15539991111@qq.com;
const bool = tools.isEmail(qq)
# checkPassword-验证码校验
onnst code = 123456;
const bool = tools.checkPassword(code)
FAQs
木木的npm包,公用方法库
The npm package @wang-weilin/tools receives a total of 4 weekly downloads. As such, @wang-weilin/tools popularity was classified as not popular.
We found that @wang-weilin/tools demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
/Research
Socket uncovered 17 malicious npm and PyPI packages typosquatting Paysafe, Skrill, and Neteller SDKs to steal developer secrets.

Security News
Node.js is debating whether AI-driven security report volume warrants moving more vulnerability reports into public workflows.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.