The email address to check.
A promise that resolves to an array of breach incidents. If no breaches are found, it returns an empty array.
import { periksadata } from 'nb-scraper';
async function checkEmail() {
const result = await periksadata('your@gmail.com');
if (result.status) {
if (result.data.length === 0) {
console.log('No data breaches found for this email.');
} else {
console.log(`Found ${result.data.length} breach(es):`);
console.log(result.data);
}
} else {
console.error(result.error);
}
}
checkEmail();
Checks for data breaches associated with a given email address using periksadata.com.