{"name":"detect-ua","version":"1.0.0","description":"A small user-agent detection library (1 kB)","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","types":"dist/types/index.d.ts","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","build":"tsc --module commonjs && rollup -c rollup.config.ts"},"author":{"name":"Tim van Scherpenzeel"},"license":"MIT","dependencies":{},"devDependencies":{"@types/jest":"^25.1.2","jest":"^25.1.0","prettier":"^1.19.1","rimraf":"^3.0.2","rollup":"^1.31.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-filesize":"^6.2.1","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.26.0","rollup-plugin-uglify":"^6.0.4","ts-jest":"^25.2.0","tslint":"^6.0.0","tslint-config-prettier":"^1.18.0","typescript":"^3.7.5"},"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":"f12d5876bfe64e227ac49da825279e78234df393","_id":"detect-ua@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-rY6OMGbB+fWoybd6dE2eRXqtA/FsnbSw41z+A4mKOSwWCWUCRd4d1CEc+PrAwrr4ABcq8LDu0TBWygAl7jGWUA==","shasum":"cdbb4cdf62c214d5d139055f6fee18fffe02988e","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-1.0.0.tgz","fileCount":17,"unpackedSize":120443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRRDYCRA9TVsSAnZWagAAVGgP/RpkiyWnxB/6s7JP9NSE\nSBY/4rg1tsdjmWyfiooaL89Uh0YZXyYoldq4H3UAg6XGDgsysUZThQOXohIL\ns7kqZDCF94xOLJ94e2Uzkrce/Ke2YCxV1Y2yXZ9SO/CNhj3mg7OtQmIbfNTA\n+INZkqTsvgM9rCQp8CqFvtY3Q6j224sfZv1v42M2QsHwyXLFSt81SsF+YOm7\n6Evx6tQIwvrjLHdj/kP/stnZUNvtAarAFKmJH/0mPwkl5LHy0JVGk2tWVN0p\nHohBrGxxS4aUsLyEI1++FzhFBn+fATjdtkqMfN/Csgpz/2JV6GQrS90uDnMk\n76RvBnnbpvNdRvLmoCU1NA0pcIsQS3I+JyPdMMyUxXcYE8zlvDxW6eQW4ouu\nJ3VA9Clw1NpsEcJyYj1QnVh197AMeNUXx47Ltef4BCWNmZGOnkjg8sT+iwZY\nSRjARY0w5CDRup2/DVidvqBcd5e7t+ruwcz9QayC4e2Y6ZD4sJR0h28OIYMj\ny5+Vz1u5AVwdTVBY9nkr2JOOtzqEsPi1eu9u6mavAfqwbNVXem85GTBcJLfN\noDY2dJvKgIhe8QowibtBCbZzDEo9qAGUF5AqvH4u/zvMhCbZzjntJZVD/5ZI\nuVIKate84+BHlBSyRJbTPpe2ImLBgziP6zYXaAOhD2AlflvDwE0hnxXwXV+P\nKJtS\r\n=utCU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICp/ef/Gqc9zCtnkKA21oWa1A15TXyTz32zdq/vryFBqAiEA9M0gS/Hfddppm2c2Bo+Hh6Zt862xQPW5wDpvq8hD/2k="}],"size":14799,"noattachment":false,"key":"/detect-ua/-/detect-ua-1.0.0.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-ua_1.0.0_1581584599978_0.4653996304638599"},"_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":1581584600119,"_cnpm_publish_time":1581584600119,"dist-tags":{"latest":"1.0.2"}}