{"name":"detect-ua","version":"1.0.1","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":"^26.0.13","jest":"^26.4.2","prettier":"^2.1.1","rimraf":"^3.0.2","rollup":"^2.26.11","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.2","rollup-plugin-uglify":"^6.0.4","ts-jest":"^26.3.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.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":"04f53d15782ec5b3a16c13dfb838be5b69fb561e","_id":"detect-ua@1.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-FzBaVpuMBcuJkSS/r3bHmnhiAe0SMipQ3SJez/Gmq/ALzoxen1LgfukL556o8rgMUDyLfOXj9MvNnwkqJ35Fwg==","shasum":"001086a755dbfae509de51e71df580b2090cd704","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-1.0.1.tgz","fileCount":17,"unpackedSize":120530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYM6hCRA9TVsSAnZWagAA1FcP/20X2kMu923j5zOQh4/C\nGBhD+NDOrFdRALa1wEuSNFtSJQwDurQF37fZOA3AuThsOI2MAtqw8OH4bB9d\ncz/vph4Flpj8n4QpdjxfOvpM719moYf+73NOK4hzwGblue+lsobgVqgp9ram\nxeGy59eQ2S6IvK6pTuIWVRiQHnp1dIdo8ocGDpF3ugO+UCBM8Pmkuvj2t6d5\nQwk08odNsDYteIUOPvTkdeXlYSrr9dNBkZmuhmNbQWx6YywosQNmJXwvLOYM\nZQTkIl/DjHhfFmCeoe7fsb+1gL1wyH4tDTta8bcPj2BHJ0D+DzIjeoV10v/q\n1vaFz/p4usgZF17Ro8AQo5MekaUBt6f445Y5VtTzQf2UDsBT27jwbZCojfo2\n6vvm3BWRuqiTwwWD3r2y7aEbXb6rRUsySigk+4+O6sSYOrkN3fjeSjQpjBhi\n8vtZrvtkGgUJdk/hnhsVYrOZ1ukCCuBVal6aA24DLorEbRSYcKKGYWD8iLD5\nW7Ywu7K4Ffk5pG3WGYb3aHq9s6bM8kXOHEsrnraUVOHL7bLahz3/IoijpKQ7\nfmWUMD2BAnpfTA66ffkgpabyLPqyQqTwgLIkXH70Wr2gVuAr5eP92UeEqt7W\neAb0tDdQS437eV5qEtvH1QS4cl80G8eMsn+MYCh3JKOWF7FeHGw9sOGWj6md\nM44R\r\n=VWzh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGN0ZQsfOgFUfP6ii+rxo9v8XQfoJHbjlq6a2icmNLj7AiAfXK/6eF1IOj8+1kGs1tNkk7SyprCK5kJH6fhz75Hufg=="}],"size":15915,"noattachment":false,"key":"/detect-ua/-/detect-ua-1.0.1.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.1_1600179873085_0.21631063870878453"},"_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":1600179873209,"_cnpm_publish_time":1600179873209,"dist-tags":{"latest":"1.0.2"}}