Files
phishing/packages/phishing
Satoshi Qazi Muhammed d05316750e Move to @pezkuwi/dev 0.86 (eslint 10 toolchain)
- @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
2026-10-09 15:35:51 +04:00
..
2026-01-09 04:11:37 +03:00
2023-05-18 11:21:13 +03:00
2023-05-18 11:21:13 +03:00

@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');
}