{"name":"detect-ua","version":"0.0.3","description":"A small user-agent detection library (< 1kB)","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.10","jest":"^23.6.0","prettier":"^1.15.3","rimraf":"^2.6.2","rollup":"^0.67.3","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-filesize":"^5.0.1","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-uglify":"^6.0.0","ts-jest":"^23.10.5","tslint":"^5.11.0","tslint-config-prettier":"^1.17.0","typedoc":"^0.13.0","typescript":"^3.2.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":"1dc41d895b67ac29310ab436a0be4d5558546054","_id":"detect-ua@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"dist":{"integrity":"sha512-yHuF8UhiR0jbR4iA26Kh+gVO5Vi/u9JRSRdq7W9wZYvTuftk/urBrQnTteEpEJd33S81POyKztR1KVZNXf5/iw==","shasum":"4279de121ca8221cd771d0f7aa029352c4d1e6a9","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.0.3.tgz","fileCount":28,"unpackedSize":1441479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcV0JsCRA9TVsSAnZWagAAHbIP/25PBkdV955qBkZcJxON\nL0x7ym9XP0WjQi5dxJXSW2LlTfyobnBmXMiSOCbQntND0sJ8P7uLCHFLhl1c\n3dJiXKJEiJeAQlBmogTTCdQ+3EzJz8rIV3e3AGDKh1ZayGHMzctTbMDYud9K\n6rY4XF/do74DgOwaiFIeREtoFk02oHiXaD0ODFJTq2wEUGYxXbqF+rIDkgvN\nC5Y/i3mhMhJUvClGV5iBl8UsaM6gJSPyKHaPGerBvX565/RtPFqh0sWf5OC0\nVUl4W4nMzgMF0H67SQfghFOOBlSZl8eh4VtST3WsrNUKQPkjhaVrEwbNS0o1\nEOaPGWBDjZpZNbJ5pd5Y/Wvg6drUg+uUtF49LEC6Z9STkEMG+FX0TVlcKd/H\nTAEJgqC7Cobcav4YHzTaC/QEGxt0scicTAvbeOqCU1bXwZJOWhwe5COipRtO\nCzP75kKOvgBTaBOKL9nmP+YwpqPGX1/vFZHFaJQTdfgHUnjSB1HAs/wh+dfB\nK9/8u5S5dpcQwM2Vdu0AnNUlzfpeCJH8ONyKda33XZDodeh2E9t4ZcfBXVcP\nNrFSgcoLr3I1l7Mncwj6tTGuJEYLpof5g2+ozQadyHhxEYdW67jOeimHOz1K\ndHhHqBOJdfeY8EeYt8hb2lhMIfduTfIaQCshcqrOm6vK7ICwYMzneiM5pM2s\nGbg7\r\n=nj5Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFY2gxEG9FhpTgzZIqaKSYzUwiQXR6loAYvJsgZjYYExAiBAGir5NhpHDvD4OYT6hvAEXg1JyB+T5bmgiGOGcRUCuQ=="}],"size":484853,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.0.3.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-ua_0.0.3_1549222507569_0.1198593414289868"},"_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":1549222507784,"_cnpm_publish_time":1549222507784,"dist-tags":{"latest":"1.0.2"}}