哈维宾
我被伪造的API方法(非官方)
例子
const hibp = require ( 'haveibeenpwned' ) ( ) ;
hibp . breachedAccount ( '[email protected]' , ( err , data ) => {
if ( err ) {
return console . log ( err ) ;
}
console . log ( data ) ;
} ) ;
安装
npm i haveibeenpwned
配置
名称
类型
必需的
默认
描述
超时
数字
不
5000
请求等待超时(以毫秒为单位)
const pwned = require ( 'haveibeenpwned' ) ( {
timeout : 10000
} ) ;
我已经被认领了吗
以下是主要的Have I Been Pwned API
评论0
最新资源