{"name":"platform","version":"1.3.1","description":"A platform detection library that works on nearly all JavaScript platforms.","license":"MIT","main":"platform.js","keywords":["environment","platform","ua","useragent"],"author":{"name":"Benjamin Tan","email":"demoneaux@gmail.com","url":"https://d10.github.io/"},"contributors":[{"name":"Benjamin Tan","email":"demoneaux@gmail.com","url":"https://d10.github.io/"},{"name":"John-David Dalton","email":"john.david.dalton@gmail.com","url":"http://allyoucanleet.com/"},{"name":"Mathias Bynens","email":"mathias@qiwi.be","url":"https://mathiasbynens.be/"}],"repository":{"type":"git","url":"git+https://github.com/bestiejs/platform.js.git"},"scripts":{"test":"echo \"See the repository CONTRIBUTING.md for testing instructions.\""},"devDependencies":{"docdown":"~0.3.0","qunit-extras":"~1.4.0","qunitjs":"~1.20.0","requirejs":"^2.1.22"},"files":["platform.js"],"bugs":{"url":"https://github.com/bestiejs/platform.js/issues"},"homepage":"https://github.com/bestiejs/platform.js#readme","_id":"platform@1.3.1","_shasum":"492210892335bd3131c0a08dda2d93ec3543e423","_from":".","_npmVersion":"2.14.15","_nodeVersion":"5.2.0","_npmUser":{"name":"jdalton","email":"john.david.dalton@gmail.com"},"dist":{"shasum":"492210892335bd3131c0a08dda2d93ec3543e423","tarball":"http://registry-npm.ywwl.com/platform/download/platform-1.3.1.tgz","integrity":"sha512-iqkBVOpkhqys5+qj6mG58eeSmkS5k3HyT+Kkhn2MzDmbDgLfjTNMLW7Zh4PFIs52ZG25jxOIGtvuVzdiYqf8Bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQf0SjFBUbZ56//Yz/CszyyOMULjZGEH2U832lr3evJAiEAig6Tx4uVqZ+EBj8unaqa3Z31BYOLxlTKKj7r9dEAEu0="}],"size":12453,"noattachment":false,"key":"/platform/-/platform-1.3.1.tgz"},"maintainers":[{"name":"jdalton","email":"john@fusejs.com"},{"name":"mathias","email":"mathias@qiwi.be"},{"name":"d10","email":"demoneaux@gmail.com"}],"directories":{},"readme":"# Platform.js v1.3.5\n\nA platform detection library that works on nearly all JavaScript platforms.\n\n## Disclaimer\n\nPlatform.js is for informational purposes only & **not** intended as a substitution for feature detection/inference checks.\n\n## Documentation\n\n* [doc/README.md](https://github.com/bestiejs/platform.js/blob/master/doc/README.md#readme)\n* [wiki/Changelog](https://github.com/bestiejs/platform.js/wiki/Changelog)\n* [wiki/Roadmap](https://github.com/bestiejs/platform.js/wiki/Roadmap)\n* [platform.js demo](https://bestiejs.github.io/platform.js/) (See also [whatsmyua.info](https://www.whatsmyua.info/) for comparisons between platform.js and other platform detection libraries)\n\n## Installation\n\nIn a browser:\n\n```html\n<script src=\"platform.js\"></script>\n```\n\nIn an AMD loader:\n\n```js\nrequire(['platform'], function(platform) {/*…*/});\n```\n\nUsing npm:\n\n```shell\n$ npm i --save platform\n```\n\nIn Node.js:\n\n```js\nvar platform = require('platform');\n```\n\nUsage example:\n\n```js\n// on IE10 x86 platform preview running in IE7 compatibility mode on Windows 7 64 bit edition\nplatform.name; // 'IE'\nplatform.version; // '10.0'\nplatform.layout; // 'Trident'\nplatform.os; // 'Windows Server 2008 R2 / 7 x64'\nplatform.description; // 'IE 10.0 x86 (platform preview; running in IE 7 mode) on Windows Server 2008 R2 / 7 x64'\n\n// or on an iPad\nplatform.name; // 'Safari'\nplatform.version; // '5.1'\nplatform.product; // 'iPad'\nplatform.manufacturer; // 'Apple'\nplatform.layout; // 'WebKit'\nplatform.os; // 'iOS 5.0'\nplatform.description; // 'Safari 5.1 on Apple iPad (iOS 5.0)'\n\n// or parsing a given UA string\nvar info = platform.parse('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7.2; en; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 11.52');\ninfo.name; // 'Opera'\ninfo.version; // '11.52'\ninfo.layout; // 'Presto'\ninfo.os; // 'Mac OS X 10.7.2'\ninfo.description; // 'Opera 11.52 (identifying as Firefox 4.0) on Mac OS X 10.7.2'\n```\n\n## Support\n\nTested in Chrome 82-83, Firefox 77-78, IE 11, Edge 82-83, Safari 12-13, Node.js 4-14, & PhantomJS 2.1.1.\n\n## BestieJS\n\nPlatform.js is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, & plenty of documentation.\n","publish_time":1451676945823,"_cnpm_publish_time":1451676945823,"dist-tags":{"latest":"1.3.6"}}