mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-10-20 18:56:29 +00:00
- @pezkuwi/dev, dev-test, dev-ts ^0.86.2 - addrcheck.spec: optional call instead of a guard expression (@typescript-eslint/prefer-optional-chain) - checkRepoMeta: drop the initial value every path overwrites (no-useless-assignment) - ipfsUpload: drop a disable directive for a rule the toolchain no longer reports
@pezkuwi/phishing
To check for sites that are on the list -
import { checkIfDenied } from '@pezkuwi/phishing';
const isOnDeny = await checkIfDenied(window.location.host);
console.log(`isOnDeny=${isOnDeny}`);
To check for addresses that are on the list -
import { checkAddress } from '@pezkuwi/phishing';
const info = await checkAddress('1b....');
if (info) {
console.log(`The address is reported as ${info}`);
} else {
console.log('Not reported');
}