adblock-detect-react
Version:
Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.
47 lines (46 loc) • 1.18 kB
JSON
{
"name": "adblock-detect-react",
"version": "1.3.1",
"description": "Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"author": "https://github.com/aruniverse",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/aruniverse/adblock-detect-react",
"directory": "adblock-detect-react"
},
"files": [
"cjs/**/*",
"esm/**/*"
],
"keywords": [
"react",
"hooks",
"adblock",
"ad",
"block",
"detect"
],
"scripts": {
"build": "npm run -s build:cjs && npm run -s build:esm",
"build:cjs": "tsc 1>&2 --outDir cjs",
"build:esm": "tsc 1>&2 --module ES2020 --outDir esm",
"clean": "rimraf cjs esm",
"rebuild": "npm run -s clean && npm run -s build"
},
"devDependencies": {
"@types/react": "^16.14.55",
"@types/react-dom": "^16.9.24",
"react": "16.13.1",
"react-dom": "16.13.1",
"rimraf": "^3.0.2",
"typescript": "~5.3.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
}