{"name":"detect-ua","version":"0.0.11","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","build":"tsc --module commonjs && rollup -c rollup.config.ts"},"author":{"name":"Tim van Scherpenzeel"},"license":"MIT","dependencies":{},"devDependencies":{"@types/jest":"^24.0.13","jest":"^24.8.0","prettier":"^1.17.1","rimraf":"^2.6.3","rollup":"^1.12.3","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-filesize":"^6.0.1","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-uglify":"^6.0.2","ts-jest":"^24.0.2","tslint":"^5.16.0","tslint-config-prettier":"^1.18.0","typescript":"^3.4.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":"623e2f0a349e387ce344c7e2988e687e36dae7d8","_id":"detect-ua@0.0.11","_nodeVersion":"11.11.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-IzaMCf0Yuwft9U6zhCvcP/OwHECpNd1wACACL0Y6hVQn6hzKXHvGgNACMtWT0X74Gm9t1Te3yjSwaYaxKasWpg==","shasum":"9f73dab0548bb45ad9de9a3ad7a928c7422f0b8c","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.0.11.tgz","fileCount":17,"unpackedSize":291941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5aKQCRA9TVsSAnZWagAAKFYP/0+sY2hYsc2pbncsOEic\n0W76C62o2cf9rEA8NEpgYN/mSdxnl/hYoyi8+3oEgn2eJyqFyCjZDy09Agqr\n+Mszdsgc1xKXwP5F4UaihiU9kGNxlA4V4gdqVlfopCRJUMhRRyStV2MXZU+l\nnLYnKExifPXNkKNPNbN6geG+1qQGn9QbqhPIuJ1+tTAG9T129vzWc72pm8OV\ndNnA+dAmiGwDqg60VN6XK9LYcDdIDUF3JK1UoVa+tZ/jLIsByaNd0j5Hfsud\nF278hlD1Mms2YSZWjvlY9+RYPY4lPTUkFLzzlpkC6HYXINVtRcmRNf3wRKOM\nNu3d3uHoUVBrtxhdFBGPGdKZGNY5XYNE/5DL2HuAeFceeFhFH3xHFH2pCEvw\nPiESWQh09002D6/CdHUazaKXBrAe6nljhsj2G51WmzJu49Zw1oTBDnxoSSw4\n3GKz0Ex/0P2RMGxz6vaavLfUopg9e4AmGp/bnBEtwkLyYFhiBOJLHFo6V9T3\nY3lT3lM145SBs4uNHrjGQUoryp3/Aj5oI8Jv4Q82y+kuNomf3scTOtwvtFEr\nWwhRNNTYFcASlNFywa9R6n8KAsPtF63sffe+H/WTiDw8V9tn7eocKAogW791\nx1FH8gms2wwepaODln0YY7OOwAzePMt580IXIFZkpbQ93GipuUnTrhxXDYL6\nhTZE\r\n=BBBi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETb44THj4I4DcjbqbI3Uzph+CngjVOaQ39jXBaAtV1UAiEAr0edYrwpI4GI0YW8CvU9KETm6uSHmV1XPjUtlf7C6lg="}],"size":81965,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.0.11.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.11_1558553231591_0.952201316749667"},"_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":1558553231701,"_cnpm_publish_time":1558553231701,"dist-tags":{"latest":"1.0.2"}}