UNPKG

react-device-detect

Version:

Detect device type and render your component according to it

69 lines (68 loc) 1.54 kB
{ "name": "react-device-detect", "version": "1.12.0", "description": "Detect device type and render your component according to it", "main": "main.js", "typings": "./index.d.ts", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/duskload/react-device-detect/" }, "keywords": [ "useragent", "mobile", "phone", "tablet", "detect", "device", "browser", "smart-tv", "smarttv", "version", "model", "console" ], "peerDependencies": { "react": "^0.14.0 || ^15.0.0 || ^16.0.0", "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0" }, "scripts": { "test": "jest", "test:watch": "jest --watch", "cover": "jest --coverage", "build": "rollup -c", "prepare": "npm run build" }, "jest": { "setupFiles": [ "./.jestSetup.js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "./.jestSetup.js" ] }, "author": { "name": "Michael Laktionov", "email": "duskload@gmail.com" }, "devDependencies": { "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.1", "jest": "^24.8.0", "raf": "^3.4.0", "react": "^16.9.0", "react-dom": "^16.9.0", "react-test-renderer": "^16.0.0", "rollup": "^1.17.0", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.0.1", "rollup-plugin-node-resolve": "^5.2.0" }, "dependencies": { "ua-parser-js": "^0.7.21" } }