@opuu/inview
Version:
Lightweight JavaScript library for viewport detection with debounced callbacks - intersection observer, lazy loading, scroll animations, infinite scroll, element visibility tracking with TypeScript support. Zero dependencies, ~1KB gzipped.
85 lines (84 loc) • 2.27 kB
JSON
{
"name": "@opuu/inview",
"version": "2.3.1",
"description": "Lightweight JavaScript library for viewport detection with debounced callbacks - intersection observer, lazy loading, scroll animations, infinite scroll, element visibility tracking with TypeScript support. Zero dependencies, ~1KB gzipped.",
"type": "module",
"files": [
"dist",
"src"
],
"main": "./dist/inview.cjs",
"module": "./dist/inview.js",
"types": "./dist/src/inview.d.ts",
"exports": {
".": {
"types": "./dist/src/inview.d.ts",
"import": "./dist/inview.js",
"require": "./dist/inview.cjs"
}
},
"scripts": {
"build": "vite build",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts"
},
"author": {
"name": "Obaydur Rahman",
"url": "https://github.com/opuu"
},
"license": "MIT",
"homepage": "https://github.com/opuu/inview",
"repository": {
"type": "git",
"url": "git+https://github.com/opuu/inview.git"
},
"keywords": [
"inview",
"viewport",
"intersection-observer",
"lazy-loading",
"scroll",
"visibility",
"element-visibility",
"scroll-spy",
"infinite-scroll",
"scroll-animation",
"viewport-detection",
"element-observer",
"javascript",
"typescript",
"browser",
"dom",
"performance",
"lightweight",
"modern",
"zero-dependencies",
"framework-agnostic",
"react",
"vue",
"angular",
"vanilla-js",
"web-performance",
"user-experience",
"intersection",
"observer-api",
"element-tracking"
],
"devDependencies": {
"@eslint/js": "^9.32.0",
"eslint": "^9.32.0",
"globals": "^16.3.0",
"prettier": "^3.6.2",
"typescript": "^5.9.2",
"typescript-eslint": "^8.38.0",
"vite": "^6.3.5",
"vite-plugin-dts": "^4.5.4"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"eslint"
]
}
}