UNPKG

use-device-pixel-ratio

Version:

React hook for finding device pixel ratio (DPR), optionally capping/rounding

57 lines (56 loc) 1.42 kB
{ "name": "use-device-pixel-ratio", "version": "1.1.2", "description": "React hook for finding device pixel ratio (DPR), optionally capping/rounding", "keywords": [ "react", "hook", "dpr", "dpi", "pixel" ], "repository": { "type": "git", "url": "https://github.com/rexxars/use-device-pixel-ratio.git" }, "license": "MIT", "author": { "name": "Espen Hovlandsdal", "email": "espen@hovlandsdal.com", "url": "https://espen.codes/" }, "sideEffects": false, "main": "./dist/index.js", "unpkg": "./dist/index.umd.js", "module": "./dist/index.module.js", "source": "./index.ts", "types": "./dist/index.d.ts", "scripts": { "dev": "vite", "build": "microbundle --target node", "prepare": "npm run build", "prepublishOnly": "npm run build", "test": "jest" }, "devDependencies": { "@babel/preset-typescript": "^7.14.5", "@types/jest": "^27.0.1", "@types/react": "^17.0.19", "@types/react-dom": "^17.0.9", "@vitejs/plugin-react-refresh": "^1.3.1", "eslint": "^7.0.0", "eslint-config-prettier": "^7.0.0", "eslint-config-sanity": "^5.0.0", "jest": "^27.1.0", "microbundle": "^0.13.3", "prettier": "^2.3.2", "react": "^17.0.2", "react-dom": "^17.0.2", "ts-jest": "^27.0.5", "typescript": "^4.3.5", "vite": "^2.5.2" }, "peerDependencies": { "react": ">=16.8.0" } }