Detect adblock usage with ease
npm install adblock-hunterbash
$ npm install --save adblock-hunter
`Examples
$3
`javascript
import { isAdblocking } from 'adblock-hunter'isAdblocking().then((adblocking) => {
if (adblocking) {
// an adblocker is present
}
})
// or
const someFunction = async () => {
// some of your code here...
const adblocking = await isAdblocking()
if (adblocking) {
// an adblocker is present
}
}
`$3
`html