UNPKG

observe-element-in-viewport

Version:

Wrapper around IntersectionObserver to hide away its weirdness and increase ease of usability

44 lines (43 loc) 1.55 kB
{ "name": "observe-element-in-viewport", "version": "0.0.15", "description": "Wrapper around IntersectionObserver to hide away its weirdness and increase ease of usability", "source": "src/index.ts", "main": "dist/index.umd.js", "module": "dist/index.esm.js", "types": "dist/src/index.d.ts", "sideEffects": false, "scripts": { "test": "echo \"TODO: Add tests\" && exit 1", "clean": "rimraf dist", "typecheck": "tsc --noEmit -p .", "lint": "tslint -p ./tsconfig.json", "bundle": "microbundle build -f es,umd --tsconfig ./tsconfig.json", "build": "npm run clean && npm run typecheck && npm run lint && npm run bundle", "prepare": "npm run build", "watch": "fswatch -0 -o src/index.ts ./tsconfig.json | xargs -0 -n1 -I% `which bash` -c 'echo \"----Starting building and bundling at $(date)---\" && npm run build && echo \"----Done building and bundling at $(date)---\"'" }, "keywords": [ "IntersectionObserver", "viewport", "is-in-viewport" ], "author": "Mudit Ameta <zeusdeux@gmail.com>", "license": "ISC", "dependencies": {}, "devDependencies": { "microbundle": "^0.11.0", "prettier": "^1.14.3", "rimraf": "^3.0.0", "tslint": "^5.11.0", "typescript": "^3.0.3" }, "repository": { "type": "git", "url": "git+https://github.com/zeusdeux/observe-element-in-viewport.git" }, "bugs": { "url": "https://github.com/zeusdeux/observe-element-in-viewport/issues" }, "homepage": "https://github.com/zeusdeux/observe-element-in-viewport#readme" }