{"name":"detect-ua","version":"0.0.12","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":"^24.0.22","jest":"^24.9.0","prettier":"^1.18.2","rimraf":"^3.0.0","rollup":"^1.26.3","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-filesize":"^6.2.1","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.25.2","rollup-plugin-uglify":"^6.0.3","ts-jest":"^24.1.0","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","typescript":"^3.7.2"},"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":"0f79e097f89a6cd72b7d07963329516d2004fd56","_id":"detect-ua@0.0.12","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Lb2brM4c5ilES6w0z0VYhrQpyziTUcxiCvr2XARR4ngbKovgK5ffEofpLG+pvskaoKsaVKfJJ6rP/zWTopwAbA==","shasum":"6f1cad1da7e7bc7f6fa598eaa6d069ba2317de81","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.0.12.tgz","fileCount":17,"unpackedSize":121301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxCkgCRA9TVsSAnZWagAAotQP/2zm4DkilrrXi18n2tk1\nOFf0ct/4EHyBGhyoYnJH6aegbFJNueCQrpohj5Az+aEsN0GAqhN5yM2BAKGj\nmgv3qaaLo5mc3l0a3H8Bkg2oAxRvymzM2xktqOOtzXglqJzDa/E4IEcqko3v\nUvmM0earlyfgAzVdW1yPeec+C/ddFQbnfGyhnayt8IYzPpq3EBL+1yNB+UFS\n7MX+SDKCcEpkMWJA9U3Rt2Cq1vS0W4CjnmmzexOq06TyDec0zj3mGMbEEA3i\nPSLNlC3d/XHSm0CVfLiWsqoIi+TckL8BD3rS76Jx+yVwRAHj+BTw9Hftkzej\n+BDKXdbB/7HmZQ/3LXPsxCJNhF58KLaJ7bAgiInBJyPL7jK6yfv+slQZvWOQ\nkYit4QMjNjssIGGtbza1VzXVPyYJ/ceTF9hnyYiJF/IbwU0sr7XQ7UlP5eLy\nAXNaUiO20XYjq6HRQpa4ewiCGvJJ4k1CL8h3EcSqJXgLYRw6hJbCVRF966xY\nCFIEuZpr/mkxUCpmXLck3qi2YBKBDx6AhAMzXbqiZstYyvNAuZxGXC51Zd/M\nDoUcQzcL6ruAasLlHQQP4LeLbz0McvuUWkgnD6YB+PpqT5/aza4TAmnftK3c\neCR0w5H39DY1DsSFZCbW9p7WuMlsCkC2ecylfW66AfRpBWx1pupA/VfPDoWN\nzfFe\r\n=vpEm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHY0slNvMJz+OdoJoworBqiZQ3iOw2B37nDdUzaZU5uzAiEAwawNidedo1FUf+qid3439yu/yTM8MUiM75nHzisKQmY="}],"size":14603,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.0.12.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_0.0.12_1573136671817_0.9101125436492692"},"_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":1573136671976,"_cnpm_publish_time":1573136671976,"dist-tags":{"latest":"1.0.2"}}