Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
```js const random = require('randoming'); // 随机手机号码 console.log(random.randomMobile()) // 随机手机号码(只生成159,189前缀号码) console.log(random.randomMobile(['159','189'])) // 随机guid console.log(random.guid()) // 随机字符串 len长度 console.log(random.randomString(len)) //
const random = require('randoming');
// 随机手机号码
console.log(random.randomMobile())
// 随机手机号码(只生成159,189前缀号码)
console.log(random.randomMobile(['159','189']))
// 随机guid
console.log(random.guid())
// 随机字符串 len长度
console.log(random.randomString(len))
// 随机姓名 min最小,max最大长度
console.log(random.randomName(min =2,max =4))
// 随机数字
console.log(random.randomNumber(min = 0,max = 1000,round = true))
// 随机偶数
console.log(random.randomEvenNumber(min = 0,max = 1000))
// 随机奇数
console.log(random.randomOddNumber(min = 0,max = 1000))
// 随机银行卡号
console.log(random.randomBankAccount(bankNo))
type randomIdNoOpt = {
// 最小年龄
minAge: number
// 最大年龄
maxAge: number
// 性别
gender: 'F' | 'M' | ''
// 地区编码
areaCode: string
}
// 随机身份证
console.log(random.randomIdNo(randomIdNoOpt))
// 随机uuid
console.log(random.uuid())
FAQs
```js const random = require('randoming'); // 随机手机号码 console.log(random.randomMobile()) // 随机手机号码(只生成159,189前缀号码) console.log(random.randomMobile(['159','189'])) // 随机guid console.log(random.guid()) // 随机字符串 len长度 console.log(random.randomString(len)) //
The npm package randoming receives a total of 0 weekly downloads. As such, randoming popularity was classified as not popular.
We found that randoming 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.