
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
npm install tools-an --save
// 引入
import { arrayMax } from 'tools-an'
// 使用方法
arrayMax([1,3,2]) // => [3]
数组
浏览器
数字
对象
字符串
isEnglish: 验证英文字母
isAZaz: 匹配由 26 个英文字母组成的字符串
isAZ: 匹配由 26 个英文字母的大写组成的字符串
isaz: 匹配由 26 个英文字母的小写组成的字符串
isLowercase: 验证小写英文字母
isCapital: 验证大写英文字母
isEnglishName: 验证英文姓名
isNoWord: 验证不能包含字母
isCHNAndEN: 验证中文和数字
isChineseCharacter: 验证中文(纯汉字)
isChineseName: 验证中文姓名
isNumAndStr: 验证数字和字母组成
isNumber: 验证数字
subText: 截取字符串并加略号
与人相关验证
isPostcode: 验证邮政编码(中国)
isCreditCode: 验证统一社会信用代码
isEmail: 验证email(邮箱)
isQQNum: 验证qq号格式
isWeChatNum: 验证微信号,6至20位,以字母开头,字母,数字,减号,下划线
isIDCard: 验证身份证号, 支持1/2代(15位/18位数字)
isMPStrict: 验证手机号中国(严谨), 根据工信部2019年最新公布的手机号段
isLandlineTelephone: 验证座机电话(国内),如: 0341-86091234
isAccountNumber: 验证银行卡号(10到30位, 覆盖对公/私账户, 参考微信支付)
isPassport: 验证护照(包含香港、澳门)
isTrainNum: 验证火车车次
isWebAccount: 验证帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线组合)
isLicensePlateNumber: 验证车牌号(新能源+非新能源)
isIMEI: 验证手机机身码(IMEI)
isIDCardNew: 验证身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
isIDCardOld: 验证身份证号(1代,15位数字)
isLicensePlateNumberNNER: 验证车牌号(非新能源)
isLicensePlateNumberNER: 验证车牌号(新能源)
isEmailAddress: 匹配电子邮件地址
isMPRelaxed: 验证手机号中国(宽松), 只要是13,14,15,16,17,18,19开头即可
网络
isImageUrl: 验证图片链接地址(图片格式可按需增删)
isVideoUrl: 验证视频链接地址(视频格式可按需增删)
isSubnetMask: 验证子网掩码
isMagnet: 验证磁力链接(宽松匹配)
isThunderLink: 验证迅雷链接
ised2k: 验证ed2k链接(宽松匹配)
isRightWebsite: 验证网址(支持端口和"?+参数"和"#+参数)
isHttpAndPort: 验证必须带端口号的网址(或ip)
系统
isWindowsFolderPath: 验证window"文件夹"路径
isLinuxFolderPath: 验证linux"文件夹"路径
颜色
isColor16: 验证16进制颜色
generateRandomHexColor: 生成随机颜色
版本
isVersion: 验证版本号格式必须为X.Y.Z
FAQs
函数工具库,涵盖数组,字符串,对象,浏览器等常用业务方法函数
The npm package tools-an receives a total of 0 weekly downloads. As such, tools-an popularity was classified as not popular.
We found that tools-an demonstrated a not healthy version release cadence and project activity because the last version was released 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.