0.1.0 • Published 3 years ago

@axia-js/phishing v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

@axia-js/phishing

To check for sites that are on the list -

import { checkIfDenied } from '@axia-js/phishing';

const isOnDeny = await checkIfDenied(window.location.host);

console.log(`isOnDeny=${isOnDeny}`);

To check for addresses that are on the list -

import { checkAddress } from '@axia-js/phishing';

const info = await checkAddress('1b....');

if (info) {
  console.log(`The address is reported as ${info}`);
} else {
  console.log('Not reported');
}