
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
按银行卡卡号检测该银行卡类型,银行名称,银行代码 银行卡信息库更新于(2018-09)
采用 es6 class构造类 import导入 银行卡信息库
#返回结果
{
cardNo:"6217003810020275930"
data: {
cardType: "DC",
cardTypeName: "储蓄卡",
bankName: "中国建设银行",
bankCode: "CCB"
}
validated:true
msg:"匹配成功"
}
import BankBin from 'bankbin';
new BankBin(6217003810020275930).then(function(res){
console.log(res)
},function(res){
console.log('验证失败')
});
import BankBin from 'bankbin';
try{
const res = await new BankBin(6217003810020275930);
console.log(res)
} catch (e){
console.log('验证失败')
}
{
async : false, //默认false, 是否在内置银行卡信息中查询失败后,调用支付宝开放式银行卡查询API。
timeout : 10000 //默认10000, async参数为true时,生效. API调用超时时间
}
//例:
try{
const res = await new BankBin(6217003810020275930, { async : true });
console.log(res)
} catch (e){
console.log('验证失败')
}
FAQs
We found that bankbin 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.