1.0.0 • Published 12 months ago

site-health-checker v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

site-health-checker

A package to check site health for AdBlock, cookies, and localStorage issues.

Installation

To install, run:

npm install site-health-checker

or

yarn add site-health-checker

Usage

Import and Configure

Import the checkSiteHealth function from site-health-checker in your JavaScript file:

import { checkSiteHealth } from 'site-health-checker';

Call checkSiteHealth to perform the check. The function returns a promise that resolves to an object with details about detected issues.

checkSiteHealth().then((result) => {
  if (result.hasError) {
    // Mostrar el lightbox con los errores
    console.log('Errores detectados:', result.errorDetails);
    // Aquí puedes implementar la lógica para mostrar un lightbox
    // y obligar al usuario a solucionar los problemas detectados.
  } else {
    console.log('Todo está en orden.');
  }
});
acornacorn-jsxajvansi-regexansi-stylesargparsearray-buffer-byte-lengtharray-includesarray.prototype.findlastarray.prototype.findlastindexarray.prototype.flatarray.prototype.flatmaparray.prototype.tosortedarraybuffer.prototype.sliceavailable-typed-arraysbalanced-matchbrace-expansionbuiltinscall-bindcallsiteschalkcolor-convertcolor-nameconcat-mapcross-spawndata-view-bufferdata-view-byte-lengthdata-view-byte-offsetdebugdeep-isdefine-data-propertydefine-propertiesdoctrineerror-exes-abstractes-define-propertyes-errorses-iterator-helperses-object-atomses-set-tostringtages-shim-unscopableses-to-primitiveescape-string-regexpeslinteslint-config-standardeslint-config-standard-jsxeslint-import-resolver-nodeeslint-module-utilseslint-plugin-eseslint-plugin-importeslint-plugin-neslint-plugin-promiseeslint-plugin-reacteslint-scopeeslint-utilseslint-visitor-keysespreeesqueryesrecurseestraverseesutilsfast-deep-equalfast-json-stable-stringifyfast-levenshteinfastqfile-entry-cachefind-upflat-cacheflattedfor-eachfs.realpathfunction-bindfunction.prototype.namefunctions-have-namesget-intrinsicget-stdinget-symbol-descriptionglobglob-parentglobalsglobalthisgopdgraceful-fsgraphemerhas-bigintshas-flaghas-property-descriptorshas-protohas-symbolshas-tostringtaghasownignoreimport-freshimurmurhashinflightinheritsinternal-slotis-array-bufferis-arrayishis-async-functionis-bigintis-boolean-objectis-callableis-core-moduleis-data-viewis-date-objectis-extglobis-finalizationregistryis-generator-functionis-globis-mapis-negative-zerois-number-objectis-path-insideis-regexis-setis-shared-array-bufferis-stringis-symbolis-typed-arrayis-weakmapis-weakrefis-weaksetisarrayisexeiterator.prototypejs-tokensjs-yamljson-bufferjson-parse-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson5jsx-ast-utilskeyvlevnload-json-filelocate-pathlodash.mergeloose-envifyminimatchminimistmsnatural-compareobject-assignobject-inspectobject-keysobject.assignobject.entriesobject.fromentriesobject.groupbyobject.valuesonceoptionatorp-limitp-locatep-tryparent-moduleparse-jsonpath-existspath-is-absolutepath-keypath-parsepifypkg-confpossible-typed-array-namesprelude-lsprop-typespunycodequeue-microtaskreact-isreflect.getprototypeofregexp.prototype.flagsregexppresolveresolve-fromreusifyrimrafrun-parallelsafe-array-concatsafe-regex-testsemverset-function-lengthset-function-nameshebang-commandshebang-regexside-channelstandard-enginestring.prototype.matchallstring.prototype.repeatstring.prototype.trimstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-bomstrip-json-commentssupports-colorsupports-preserve-symlinks-flagtext-tabletsconfig-pathstype-checktype-festtyped-array-buffertyped-array-byte-lengthtyped-array-byte-offsettyped-array-lengthunbox-primitiveuri-jsversion-guardwhichwhich-boxed-primitivewhich-builtin-typewhich-collectionwhich-typed-arrayword-wrapwrappyxdg-basediryocto-queue
1.0.0

12 months ago