UNPKG

useismobile

Version:

A simple React hook that provides a boolean for the screen is mobile or not.

59 lines (58 loc) 1.55 kB
{ "name": "useismobile", "version": "1.0.5", "description": "A simple React hook that provides a boolean for the screen is mobile or not.", "main": "index.js", "scripts": { "commit": "git-cz", "test": "jest", "coverage": "jest --collectCoverage", "semantic-release": "semantic-release", "prepare": "husky install" }, "repository": { "type": "git", "url": "https://github.com/tufantunc/useIsMobile.git" }, "keywords": [ "useismobile", "react", "ismobile", "hook" ], "author": "Tufan Tunç <tufan.tunc.91@gmail.com> (https://tufantunc.com/)", "license": "MIT", "bugs": { "url": "https://github.com/tufantunc/useIsMobile/issues" }, "homepage": "https://github.com/tufantunc/useIsMobile#readme", "devDependencies": { "@babel/core": "7.24.0", "@babel/plugin-transform-runtime": "7.24.0", "@babel/preset-env": "7.24.0", "@babel/preset-react": "7.23.3", "@testing-library/jest-dom": "6.4.2", "@testing-library/react": "14.2.1", "babel-jest": "29.7.0", "commitizen": "4.3.0", "cz-conventional-changelog": "3.3.0", "husky": "8.0.3", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "semantic-release": "^21.0.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.1 || ^18.2.0 || ^19.0.0" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "release": { "branches": [ "main" ] } }