{"name":"detect-ua","version":"0.1.0","description":"A small user-agent detection library (1.5 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":"595ad12d920ba3cd55bcee2bb95f993ad061aaba","_id":"detect-ua@0.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-e3zgwDAl/QW0dy5W17JgmLXeyuMqXxVOH4qBEk4MYGM337DfOCQVV0aYKgyZtYHbI1KgbIIZfa0cyblNv7OsYg==","shasum":"63837943173dc138a5eb5e6161c4e44f102be169","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-0.1.0.tgz","fileCount":17,"unpackedSize":141037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRAlNCRA9TVsSAnZWagAAhAIP/jAhHQPZ1f3yKAUYaNuI\nlws4HZRhFJ6I2vkfYHSgGR6IErmni9LLoVoqgrqJYnSMWj5S3xxwx6FuzI+/\nSP5W1qUOFnxTsZB8xT9n8O469JuQUKdO6MChmYsSc9ETW284NeGrI+A819tK\nWcHM4HimAd1sYvLoYl9dpSDRpKLuuv+Au/FZ+GKawm6b+oSH5Azj8b5i4PTT\nuw7ByGAQff3fwW9T6ZMKGYv/8FLQtrr4NHLzpGDeEyVLpiaC7tcK31SPNQAT\nhsWQKCHYvAtY6LdrJVSiiuwWPr6Z7xLurZi/OzNLI7sGKHLF1E1tScULsbk4\nmY5N1whA0uOKW20FTxRwyi1bTuEqcXqba1sOBQcJDHqNydJ/xKlbxeSia0p9\nOiYl5ROJ7ExQVdi+Ry1AB0KcXc9ZyawoAY7RaodXb91dyDxFmcbcbBg0BUea\nG6123PLI6bnrhhAws+mcSLaj7zoCtIAPgaOH3ddTKUPM7DErvhicrw4CN0Wr\nu4z93PWnDiYw1ZSYNRINWrMXt7RRmeTmsSBnl/L1w0ECU6eWFq5z+5rx/myC\n9uJk1Q/A5MmEWWUPnCZUDVaEZy2MCq3SNLWfqEIaKDjFCAE6OfKCZrefqWP0\nBG0JcRn6Lugu+qcWNRr9xuv7TiTyt9X+YSMkCuwoITnxY+eNd4pSjl0xLZCL\nzcRf\r\n=l2mx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2U7a7bT7dJlbgRc9Ucnve5DnFguudEmHzSvVj8yMgHAiA6RcjecP318GfF/XlP6D9zEdJQ/5FgpXzhFYGTHRRpkg=="}],"size":16807,"noattachment":false,"key":"/detect-ua/-/detect-ua-0.1.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_0.1.0_1581517132839_0.17359991434885846"},"_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":1581517132944,"_cnpm_publish_time":1581517132944,"dist-tags":{"latest":"1.0.2"}}