UNPKG

@rosskevin/ifvisible

Version:

Cross-browser, lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)

91 lines (90 loc) 2.55 kB
{ "name": "@rosskevin/ifvisible", "version": "3.3.6", "description": "Cross-browser, lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)", "packageManager": "yarn@4.9.2", "prettier": "@alienfast/prettier-config", "type": "module", "main-types-note": "This is to appease tsc, types will be removed by clean-package. see https://github.com/rosskevin/ts-esm-workspaces/tree/bug-main-required-to-build#workaround ", "main": "./dist/index.js", "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } }, "publishConfig": { "access": "public" }, "scripts": { "build": "run-s clean build:ide build:tsup && cp -r dist/index.js* docs/.", "build:ide": "echo 'tsc -b' && tsc -b", "build:tsup": "tsup", "clean": "node ./scripts/clean.js", "clean:yarn": "node ./scripts/clean-yarn.js", "reset": "node ./scripts/reset.js", "lint": "eslint . --cache", "lint:fix": "eslint . --cache --fix", "test": "vitest", "release": "yarn auto shipit" }, "repository": { "type": "git", "url": "git://github.com/rosskevin/ifvisible.git" }, "keywords": [ "visibility", "HTML5", "cross", "browser", "api", "UI", "idle", "status", "mousemove", "reading", "mode", "tab", "change", "typescript" ], "author": "Kevin Ross <kevin.ross@alienfast.com> (https://alienfast.com/)", "license": "MIT", "bugs": { "url": "https://github.com/rosskevin/ifvisible/issues" }, "homepage": "https://github.com/rosskevin/ifvisible", "devDependencies": { "@alienfast/eslint-config": "^5.2.8", "@alienfast/prettier-config": "^1.0.2", "@alienfast/tsconfig": "^1.0.4", "@auto-it/all-contributors": "^11.3.0", "@auto-it/first-time-contributor": "^11.3.0", "@auto-it/released": "^11.3.0", "@rollup/plugin-node-resolve": "^16.0.1", "@types/jest": "^30.0.0", "auto": "^11.3.0", "deepmerge": "^4.3.1", "eslint": "^9.32.0", "eslint-plugin-vitest": "^0.5.4", "execa": "^9.6.0", "jsdom": "^26.1.0", "npm-run-all": "^4.1.5", "prettier": "^3.6.2", "rimraf": "^6.0.1", "ts-jest": "^29.4.0", "tsup": "^8.5.0", "typescript": "^5.8.3", "typescript-eslint": "^8.38.0", "vitest": "^3.2.4" }, "auto": { "plugins": [ "npm", "all-contributors", "first-time-contributor", "released" ] } }