{"name":"detect-ua","version":"0.0.8","description":"A small user-agent detection library (974 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","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 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":"4d779306c179b851c084f7efa25e26825428f34b","_id":"detect-ua@0.0.8","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"},"dist":{"integrity":"sha512-EGJ5W5sJgyMsq4XzyEwTYpKHAXsOW9udOtNPivPzY90oVMT7WVy2hqNn1TegL3Bv6AEvf0dilDfePquX6HQPUA==","shasum":"16c1fc1c9209d97c314462f377940e203df2225d","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.0.8.tgz","fileCount":28,"unpackedSize":1451390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgCvNCRA9TVsSAnZWagAAiPwP/jv55ZcJClzlox4KLZQx\nSmV7IQOpg8HeBegiNkIHtM9cHYNv9km+JqgvgUbCJ0oRTahph8uIFiZztWCY\njpxKGlHgEuPO5dZ8dlCIyU67Mqc/mSxKZgiLvcfvTcXgodvQrhXe5oQNGP5B\notYM75RhT243fJ+gm7tGZ3uH5fx1gwqMPr+0OimNjM2pxaamwXxoAKR5PJjV\n7v+NJAx9DVuhLNjMg1gmuNC5sKzIpOcVig8TEhDJl2yvQvDn1PVgFeWRgAOn\nFIQRPwjomDLfhI/D/MbOb66nTRk5CsV8oeH3x/myYKPGStaMbL0p3swtqUEM\n+a3sh2HcRF3d8rYUpenzya6ByMGdEpyw99YQsExA/WupLTIAUqkykycnvYd3\nq/IIAWJxVVgRiwOebU9bMqAj/0h4M2PgSTPIm+9Fm2JyfCoay1uHgyIRWMyQ\n1CiZk9fTJ1LyWvANmuDXW90kbjwoG9EYlH5jKllAc2k08HV22J9/+jd+K594\nv0UL4MVzG27NGAEMrBZgYtOHHa19OmQpoJ1JhMxqfG0ymoA6KVVR7oOu0g4r\nkypD0Cnr61hA02NlSjlTZZUbqltiCRNLwU6InejcGt0Mz9aa6wm9XtuZNdlE\nQ7J1/GXopQ/GmBp3JpCrGOSZi0tRDrHfb5/IRK0C/cMH+H4cjGK9w1Xz2B4U\nAown\r\n=m4L8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzUN5WOO7ai9cBPJafqJpq3GltgGfe1EZNdQ0mV2+dDAiBrYVL1u3zEjS34Y9LDkB9YIZyCzN9DOlkA5RKGVgy3kw=="}],"size":484960,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.0.8.tgz"},"maintainers":[{"name":"timvanscherpenzeel","email":"timvanscherpenzeel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-ua_0.0.8_1551903692441_0.03251332771670579"},"_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":1551903692613,"_cnpm_publish_time":1551903692613,"dist-tags":{"latest":"1.0.2"}}