{"name":"detect-ua","version":"1.0.2","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.14","jest":"^26.4.2","prettier":"^2.1.2","rimraf":"^3.0.2","rollup":"^2.28.2","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-typescript2":"^0.27.3","rollup-plugin-uglify":"^6.0.4","ts-jest":"^26.4.0","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.0.3"},"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":"197ccc26880c4f9c8f72a4be1de488e6d61344b3","_id":"detect-ua@1.0.2","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-EsqFycxcggrkzRm3IaHr1nP1pSCDVLHW3haUvaSqws70B277a1SKk5hFtuJo3BKuPwTTRGTGsYYiJwS/97ptEg==","shasum":"4958d12a6af62adf522a26f0d9dec764ab3938c0","tarball":"http://registry-npm.ywwl.com/detect-ua/download/detect-ua-1.0.2.tgz","fileCount":17,"unpackedSize":120851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcaSZCRA9TVsSAnZWagAADr0P/RyJmHAABmwv0VThVNr9\n/eFBiobxwy3PrTC9A7H8AWzWxODfSP8bpgre/tOG9kWlqy6QUHZbE4VhmiCQ\nyjVtTGu7YfP3xFGTCwmbn5NYwqglmj4FhCwkWihemCkvOqng1d6ESfKwU9BJ\nArKq977S3QZrHtND29p46gg0AeIs49XSrrwFswCjxXngxrfiNpTPyi5ydTHE\nMsn4aIf/6cQyLc0ZAHnoh3UYv0rSDmb1vxwVpHuGn9r6wO3rKk5N9zgrULgs\n8XBbNxB1j0VXMGKFe5nQe7cwBnOXvYU16CQ4WLO43jKLb0Ta2MZNqhBtH3H4\nRXwzwrgVlyseA5e4MOA+ryvPoi6bUSgIhwCXNG4IsSJnZ3+wGSLy0ooCoy4z\nvU8hhQypPEgDYCXikSjm/KVmGy5EkOPxAAlb3jikWsVIw1NNXuUwP2IMuNrT\n0EOP07Dnr0987lX6lqFIeGfDE8jUK7ac1oXV+54UABkYjWabWr9GrUQF9yOF\nZUPZV8dN4rG81J/gh+JTPb6htVrISjQL76zX5uuZAGHwd19apcR+DhX4AtBj\nM/6HWZAiDh0EKoXzmLF7ZzV5krnCl7TpmQSHhesAJmAiRcuyr/wf029S1d/J\nI8wZOrZaBoHT3gwVWqLWHbASHwdJAfWFH+dueIfIgAbwIsZaMO28R4pDK18M\ncWZp\r\n=rg8m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnuwp01cXcpjRdgOALlixAEOBXhdjJ7U92osrLM5LanwIhAJuVVcfSqUjL3QcsLR3EMGDId/J3pJw/kCs6o/JKI91C"}],"size":16017,"noattachment":false,"key":"/detect-ua/-/detect-ua-1.0.2.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.2_1601283224974_0.21240965437866377"},"_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":1601283225077,"_cnpm_publish_time":1601283225077,"dist-tags":{"latest":"1.0.2"}}