{"name":"detect-ua","version":"0.0.6","description":"A small user-agent detection library (931 B)","main":"dist/detect-ua.cjs.js","browser":"dist/detect-ua.umd.js","module":"dist/detect-ua.esm.js","jsnext:main":"dist/detect-ua.esm.js","scripts":{"start":"rollup -c rollup.config.ts -w","lint":"tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","test":"jest --verbose=false","test:watch":"jest --watch","test:coverage":"jest --coverage","prebuild":"rimraf dist docs","build":"tsc --module commonjs && rollup -c rollup.config.ts","postbuild":"typedoc --out docs --target es5 --theme minimal --hideGenerator","deploy":"npm run build && npm version patch && npm publish && git push origin"},"author":{"name":"Tim van Scherpenzeel"},"license":"MIT","dependencies":{},"devDependencies":{"@types/jest":"^23.3.13","jest":"^24.0.0","prettier":"^1.16.4","rimraf":"^2.6.3","rollup":"^1.1.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-filesize":"^6.0.1","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-typescript2":"^0.19.2","rollup-plugin-uglify":"^6.0.2","ts-jest":"^23.10.5","tslint":"^5.12.1","tslint-config-prettier":"^1.17.0","typedoc":"^0.14.2","typescript":"^3.3.1"},"prettier":{"semi":true,"singleQuote":true,"trailingComma":"es5","printWidth":100},"jest":{"testURL":"http://localhost","moduleFileExtensions":["js","ts","tsx"],"globals":{"ts-jest":{"tsConfig":"tsconfig.json"}},"testMatch":["**/test/*.+(ts|tsx|js)"],"testPathIgnorePatterns":["/test/data.ts"],"preset":"ts-jest"},"gitHead":"3b592efb1f67ae6ad69996e56e4ca256841c2244","_id":"detect-ua@0.0.6","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"dist":{"integrity":"sha512-AA/1x06OFq4Tljx7YclODhJaWdtXaquPXJ9nCv1CEwA5dAkw92pss8M1acjZTnVNOlQ3VklKPx5F7CxcMceSMg==","shasum":"6909bceff2f9efc866815a1ce104d36120d7dd3b","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.0.6.tgz","fileCount":28,"unpackedSize":1441716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWBAYCRA9TVsSAnZWagAAx54QAJ86FsxJzphJp0+wyJDu\nFhhVa1v4KUgpiWvGCMm7TS4fu4/eb0GvNXXM924oZkTrwAjLXHxAqt6zlxyR\nyuGTLA1/MMPk+DwFJgfhq5UZk/Dzx+QygMt+5O6SIOcec2LOW6HulJ9aNbRm\n6TeWsqGEcHL0KCJeHpJz4AeLUUmZFa+P9Ef2ntYHBA0IDej5hz5nl0Xbb8x7\nmt4VXJ6TsnHll34uPetBmq2Rs+kv2Ytv70B3p9xVsjSXfxRXRTYrnbJKf0bP\nA5+8E81rbwkJ5wSMgRqq3x+EqeHM5DR7aXZQ6aESCUYpu32lAGSGQeJKeeDz\nTd4X1LqzF3Dw2MDLSRTZTZpkuO6tKnrRCNAbokV549gHt+m9WCxUGwPZdAwQ\naA5oUwIcG2c1St5ZxYEQf7dWZ5MCANHj9QGbjPFvbhllRRpeRBz5/IxbFID4\nI4FBWQh0fT8G3n6Z7d7ycymA5hjWutOtBtUTTRk20CkHiqEuzzbeF/fZpgZG\nGW8acRvjYTs1M39nDudKyNvgci4ie1jpDuMb8GjuI7T49F7Pf3gClRM7JOr3\nfYffYFCO93NyIGUiIO2nUYukQIHNj9ngyj6+lvMnKNcsaQ99Yj6udy48TySm\nKKFXDYyvo0rrvYDWk9MIxSnSYowhxLSkFyMQo/J6dvYOwgbgRtAkZB933BiL\n1XHz\r\n=cmS4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBld5IZ2cCnHnzsfNEP8PMX/ViQDgLyk/cjKX2dqg5RsAiAp74/eksBHkcV1W3zTnvDKTMnKCSHmn0qmUGsjmp42jA=="}],"size":484562,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.0.6.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-ua_0.0.6_1549275159877_0.8873291819277871"},"_hasShrinkwrap":false,"readme":"# Detect user-agent\n\n![](http://img.badgesize.io/TimvanScherpenzeel/detect-ua/master/dist/detect-ua.cjs.js.svg?compression=gzip&maxAge=60)\n[![npm version](https://badge.fury.io/js/detect-ua.svg)](https://badge.fury.io/js/detect-ua)\n\nA small user-agent detection library (1 kB).\n\nIs able to differentiate between mobile, tablet and desktop devices and finds your browser name and version.\n\n## Installation\n\nMake sure you have [Node.js](http://nodejs.org/) installed.\n\n```sh\n $ npm install detect-ua\n```\n\n## Usage\n\n```js\nimport { DetectUA } from 'detect-ua';\n\nconst device = new DetectUA();\n\nconsole.log(device.browser); // -> { name: \"Chrome\", version: \"80.0\" }\nconsole.log(device.isMobile); // -> false\nconsole.log(device.isTablet); // -> false\nconsole.log(device.isDesktop); // -> true\nconsole.log(device.isMacOS); // { version: \"10\" }\nconsole.log(device.isWindows); // -> false\nconsole.log(device.isAndroid); // -> false\nconsole.log(device.isiOS); // -> false\n```\n\n## Development\n\n```sh\n$ yarn start\n\n$ yarn lint\n\n$ yarn test\n\n$ yarn build\n```\n\n## Licence\n\nMy work is released under the [MIT license](https://raw.githubusercontent.com/TimvanScherpenzeel/detect-ua/master/LICENSE).\n","publish_time":1549275159977,"_cnpm_publish_time":1549275159977,"dist-tags":{"latest":"1.0.2"}}