This package is strongly inspired copied from BlockAdBlock & FuckAdBlock. I just didn't liked how overly complicated the end user API was so I made this, which contains only one function to detect if an adblocker is active or not.
npm install just-detect-adblock --save
isDetected()
Returns true/false if an adblocker is detected.
import adBlocker from 'just-detect-adblock'
if(adBlocker.isDetected()){
// an adblocker is detected
}