UNPKG

@owaiswiz/use-in-view

Version:

Check if your component is in viewport using this simple hook!

86 lines (85 loc) 2.03 kB
{ "name": "@owaiswiz/use-in-view", "version": "1.0.16", "description": "", "license": "MIT", "main": "./dist/index.js", "engines": { "node": ">=8" }, "scripts": { "build": "parcel build index.js", "dev:watch": "parcel examples/index.html --out-dir examples/dist", "deploy": "parcel build examples/index.html --public-url ./ --out-dir examples/dist && gh-pages -d examples/dist", "lint": "prettier --check './*.js'", "test": "npm run lint && jest", "prepare": " npm run test && npm run build && yarn version --patch" }, "files": [ "index.js" ], "keywords": [ "hooks", "react", "in view", "scroll", "reveal", "useInView", "inView", "use in view", "in view", "react hooks", "scroll reveal" ], "repository": { "type": "git", "url": "https://github.com/owaiswiz/useInView.git" }, "bugs": { "url": "https://github.com/owaiswiz/useInView/issues" }, "homepage": "https://github.com/owaiswiz/useInView", "dependencies": { "lodash.throttle": "^4.1.1", "react": "^17.0.2" }, "peerDependencies": { "react": "^17.0.2" }, "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.4.0", "@babel/plugin-proposal-class-properties": "^7.4.0", "@babel/plugin-transform-runtime": "^7.4.0", "@babel/preset-env": "^7.4.2", "@babel/preset-react": "^7.0.0", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.1", "babel-eslint": "^10.0.1", "enzyme": "^3.9.0", "eslint": "^5.15.3", "eslint-config-prettier": "^4.1.0", "eslint-plugin-ava": "^5.1.1", "eslint-plugin-react-hooks": "^1.5.1", "gh-pages": "^2.0.1", "husky": "^1.3.1", "jest": "^24.5.0", "lint-staged": "^8.1.5", "parcel-bundler": "^1.12.3", "prettier": "^1.16.4", "react-dom": "^17.0.2", "react-hooks-testing-library": "^0.3.8", "react-testing-library": "^6.0.1", "styled-components": "^4.2.0" }, "husky": { "hooks": { "pre-commit": "yarn test && yarn lint && yarn build" } }, "lint-staged": { "*.{js,json,css,md}": [ "prettier --write", "git add" ] } }