UNPKG

@xg4/device

Version:

Device detection (phone, tablet, desktop, os)

98 lines (97 loc) 2.79 kB
{ "name": "@xg4/device", "version": "0.3.2", "description": "Device detection (phone, tablet, desktop, os)", "keywords": [ "detect", "device", "mobile", "tablet", "useragent" ], "homepage": "https://github.com/xg4/device#readme", "bugs": { "url": "https://github.com/xg4/device/issues" }, "repository": { "type": "git", "url": "git+https://github.com/xg4/device.git" }, "license": "MIT", "author": "xg4 <xingor4@gmail.com>", "files": [ "dist" ], "main": "dist/index.min.js", "module": "dist/index.esm.js", "browser": "dist/index.min.js", "types": "dist/types/index.d.ts", "typings": "dist/types/index.d.ts", "scripts": { "prebuild": "npm run clean", "build": "npm run build:types && npm run build:js", "build:js": "rollup -c", "build:types": "tsc --emitDeclarationOnly", "clean": "rimraf dist", "lint": "eslint src/**/* --fix", "prepublishOnly": "npm run build", "postpublish": "git push && git push --tags", "release:major": "npm version major -m \"build: release v%s\" ", "release:minor": "npm version minor -m \"build: release v%s\" ", "release:patch": "npm version patch -m \"build: release v%s\" ", "start": "rollup -c -w", "pretest": "npm run lint", "test": "jest", "test:cov": "npm run test -- --coverage", "test:watch": "jest --watch --notify", "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch", "preversion": "npm run test", "postversion": "npm publish" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "prettier --write", "eslint --fix", "git add" ], "*.{json,md,yml}": [ "prettier --write", "git add" ] }, "devDependencies": { "@babel/core": "^7.4.5", "@babel/preset-env": "^7.4.5", "@babel/preset-typescript": "^7.3.3", "@types/cordova": "^0.0.34", "@types/jest": "^24.0.13", "@typescript-eslint/eslint-plugin": "^1.9.0", "@typescript-eslint/parser": "^1.9.0", "eslint": "^5.16.0", "eslint-config-prettier": "^4.3.0", "eslint-config-standard": "^12.0.0", "eslint-plugin-import": "^2.17.3", "eslint-plugin-jest": "^22.6.4", "eslint-plugin-node": "^9.1.0", "eslint-plugin-prettier": "^3.1.0", "eslint-plugin-promise": "^4.1.1", "eslint-plugin-standard": "^4.0.0", "husky": "^2.3.0", "jest": "^24.8.0", "lint-staged": "^8.1.7", "prettier": "^1.17.1", "rimraf": "^2.6.3", "rollup": "^1.13.1", "rollup-plugin-babel": "^4.3.2", "rollup-plugin-commonjs": "^10.0.0", "rollup-plugin-node-resolve": "^5.0.1", "rollup-plugin-terser": "^5.0.0", "typescript": "^3.5.1" } }