{"_id":"jquery.browser","_rev":"11-5e5b5f3c9dd59426d6957ef94ad0d306","name":"jquery.browser","description":"A jQuery plugin for browser detection.","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.5":{"name":"jquery.browser","version":"0.0.5","authors":["Gabriel Cebrian <gabceb@gmail.com>","jQuery Team <https://github.com/gabceb/jquery-browser-plugin/wiki/Authors>"],"description":"A jQuery plugin for browser detection.","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"devDependencies":{"webserver":"*","utils":"*","grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.2.7","grunt-contrib-copy":"~0.4.1","grunt-exec":"~0.4.2"},"license":"MIT","engines":{"node":">= 0.4.0"},"bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","_id":"jquery.browser@0.0.5","dist":{"shasum":"b5fc8f802627914702f876690cf8504e3386697c","tarball":"https://registry.npmjs.org/jquery.browser/-/jquery.browser-0.0.5.tgz","integrity":"sha512-BQweuC8NpBmMDKBnyvHEILO5w9kdapakV4vWjuzbqKZpZGFgnYhMfgOYgMkzNC7abGxSgrwDt+t/DAu7nmH/Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEinK0dkWkiqJZWcv0F09caOEPxlinm8ip1PED6dTwuTAiEArj52J/iDxD+osNyobqJEHo7D/6yb9ia+6qD6imG9W/A="}]},"_from":"jquery-browser-plugin","_npmVersion":"1.3.23","_npmUser":{"name":"gabceb","email":"gabceb@gmail.com"},"maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}]},"0.0.6":{"name":"jquery.browser","version":"0.0.6","authors":["Gabriel Cebrian <gabceb@gmail.com>","jQuery Team <https://github.com/gabceb/jquery-browser-plugin/wiki/Authors>"],"description":"A jQuery plugin for browser detection.","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"devDependencies":{"webserver":"*","utils":"*","grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.2.7","grunt-contrib-copy":"~0.4.1","grunt-exec":"~0.4.2"},"license":"MIT","engines":{"node":">= 0.4.0"},"bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","_id":"jquery.browser@0.0.6","dist":{"shasum":"d5af1e215e6636e3dd2166d3383f4943ee033b09","tarball":"https://registry.npmjs.org/jquery.browser/-/jquery.browser-0.0.6.tgz","integrity":"sha512-NmhGQ0f+xmPtezQvHh4tOI8hTB7tUYiJe180vwv+NtSUMRXljMbBDVuuHhsz4aFSJQwjqHxUSXdbbzMCD71hrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFV/HcRnfbksDBiQ1AREKqcvW6r9Gu4hEqy3m7CruiPMAiBDgvTApKJlXDkP3vX5nHg4qbTxEGsaD77+PSASjumM9A=="}]},"_from":"jquery-browser-plugin","_npmVersion":"1.3.23","_npmUser":{"name":"gabceb","email":"gabceb@gmail.com"},"maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}]},"0.0.7":{"name":"jquery.browser","version":"0.0.7","authors":["Gabriel Cebrian <gabceb@gmail.com>","jQuery Team <https://github.com/gabceb/jquery-browser-plugin/wiki/Authors>"],"description":"A jQuery plugin for browser detection.","main":"dist/jquery.browser.js","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"devDependencies":{"webserver":"*","utils":"*","grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.2.7","grunt-contrib-copy":"~0.4.1","grunt-exec":"~0.4.2"},"license":"MIT","engines":{"node":">= 0.4.0"},"gitHead":"c41db05410c4278432fdd8bef24d1f28988c13ef","bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","_id":"jquery.browser@0.0.7","scripts":{},"_shasum":"4c90177a23d59f30689fc538563aab039a8563ac","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"gabceb","email":"gabceb@gmail.com"},"maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}],"dist":{"shasum":"4c90177a23d59f30689fc538563aab039a8563ac","tarball":"https://registry.npmjs.org/jquery.browser/-/jquery.browser-0.0.7.tgz","integrity":"sha512-TxapdpW2xtPdxTA7lu/npfscCdhCCjEHEe0pB5HZRS7O+SYeKXtdNumg9r9E59xS0+JO17ICfdUku8HhteM5Ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWBNxoC65BoTRCeXReO0FRW2G8OYipglXSw5kG61rrjAiEAwKMajbNQH4caQFWAxNdFQ1xM97cVNNhxy/Wbq0+idM0="}]}},"0.0.8":{"name":"jquery.browser","version":"0.0.8","authors":["Gabriel Cebrian <gabceb@gmail.com>","jQuery Team <https://github.com/gabceb/jquery-browser-plugin/wiki/Authors>"],"scripts":{"test":"grunt test"},"description":"A jQuery plugin for browser detection.","main":"dist/jquery.browser.js","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.0","grunt-browserify":"^3.2.1","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.2.7","grunt-exec":"~0.4.2","jquery":"^2.1.3","mocha":"^2.1.0","webserver":"^1.1.2"},"license":"MIT","engines":{"node":">= 0.4.0"},"gitHead":"deedc12dcf8857686d592365df0cc0cf7324eec8","bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","_id":"jquery.browser@0.0.8","_shasum":"43f7b9da0172760a67df89f6725aeec8bcba8990","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"gabceb","email":"gabceb@gmail.com"},"maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}],"dist":{"shasum":"43f7b9da0172760a67df89f6725aeec8bcba8990","tarball":"https://registry.npmjs.org/jquery.browser/-/jquery.browser-0.0.8.tgz","integrity":"sha512-C5UBaja6sISVXR1HBdLFoeqEU445oiGL9g/KvvyQiAms6tAQiwoEsfpB48iGtMc/wauPtaye3b7L4WGYjF9xLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAv5PEq7HXiTN75WZ/MEb3dzyAmhMD99LFX012F4hGx6AiAzJrLEAiG+ELYOqAFBz8TNwYDwtyzneQpGyVmpugMhxA=="}]}},"0.1.0":{"name":"jquery.browser","version":"0.1.0","authors":["Gabriel Cebrian <gabceb@gmail.com>","jQuery Team <https://github.com/gabceb/jquery-browser-plugin/wiki/Authors>"],"scripts":{"test":"grunt test"},"description":"A jQuery plugin for browser detection.","main":"dist/jquery.browser.js","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"devDependencies":{"chai":"^1.10.0","grunt":"~0.4.0","grunt-browserify":"^3.2.1","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.1.1","grunt-contrib-uglify":"~0.2.7","grunt-exec":"~0.4.2","jquery":"^2.1.3","mocha":"^2.1.0","webserver":"^1.1.2"},"license":"MIT","engines":{"node":">= 0.4.0"},"gitHead":"07d59ee6e87da9f789b196d221e5f62f9db3c158","bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","_id":"jquery.browser@0.1.0","_shasum":"9c72a6095fd2814b44476ea8f716677b72a6a2bb","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"gabceb","email":"gabceb@gmail.com"},"maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}],"dist":{"shasum":"9c72a6095fd2814b44476ea8f716677b72a6a2bb","tarball":"https://registry.npmjs.org/jquery.browser/-/jquery.browser-0.1.0.tgz","integrity":"sha512-5GjtLzzEBzxs/nwSVpCbSdk0acssfKsP7Upp43zmdHVV1Vb6E9VayyqPAQlfLrTeZL3YSWocCbkOvKdAc2CN4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwwojEv2fjJcuEfAZfl6xTO00le7JmShirJedQMK6WUAiEAtM0RPSGxixiKFF9Waa9SEn6qQedcHNWi66ECCPxcaTE="}]}}},"readme":"[![NPM](https://nodei.co/npm/jquery.browser.png)](https://nodei.co/npm/jquery.browser/)\n\n[![Build Status](https://travis-ci.org/gabceb/jquery-browser-plugin.svg?branch=master)](https://travis-ci.org/gabceb/jquery-browser-plugin)\n\nA jQuery plugin for browser detection. jQuery v1.9.1 dropped support for browser detection, and this project aims to keep the detection up-to-date.\n\n## Installation\n\nInclude script *after* the jQuery library:\n```html\n<script src=\"/path/to/jquery.browser.js\"></script>\n```\n\nAlternatively, you can use the plugin without jQuery by using the global object `jQBrowser` instead of `$.browser`.\n\n## Usage\n\nReturns true if the current useragent is some version of Microsoft's Internet Explorer. Supports all IE versions including IE 11.\n\n    $.browser.msie;\n\nReturns true if the current useragent is some version of a WebKit browser (Safari, Chrome and Opera 15+)\n\n    $.browser.webkit;\n\nReturns true if the current useragent is some version of Firefox\n\n    $.browser.mozilla;\n\nReading the browser version\n\n    $.browser.version\n\nYou can also examine arbitrary useragents\n\n    jQBrowser.uaMatch();\n\n## Things not included in the original jQuery $.browser implementation\n\n- Detect specifically Windows, Mac, Linux, iPad, iPhone, iPod, Android, Kindle, BlackBerry, Chrome OS, and Windows Phone useragents\n\n```javascript\n\t$.browser.android\n\t$.browser.blackberry\n\t$.browser.cros\n\t$.browser.ipad\n\t$.browser.iphone\n\t$.browser.ipod\n\t$.browser.kindle\n\t$.browser.linux\n\t$.browser.mac\n\t$.browser.msedge\n\t$.browser.playbook\n\t$.browser.silk\n\t$.browser.win\n\t$.browser[\"windows phone\"]\n```\n\nAlternatively, you can detect for generic classifications such as desktop or mobile\n\n```javascript\n\t$.browser.desktop\n\t$.browser.mobile\n```\n\n```javascript\n\t// User Agent for Firefox on Windows\n\tUser-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0\n\t\n\t$.browser.desktop // Returns true as a boolean\n```\n\n```javascript\n\t// User Agent for Safari on iPhone\n\tUser-Agent: Mozilla/5.0(iPhone; CPU iPhone OS 7_0_3 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B508 Safari/9537.53\n\t\n\t$.browser.mobile // Returns true as a boolean\n```\n\n- Detect the browser's major version\n\n```javascript\n\t// User Agent for Chrome\n\t// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1664.3 Safari/537.36\n\t\n\t$.browser.versionNumber // Returns 32 as a number\n```\n\n- Support for new useragent on IE 11\n- Support for Microsoft Edge\n- Support for WebKit based Opera browsers\n- Added testing using PhantomJS and different browser user agents\n\n## Testing\n\nTesting for this plugin is done with [Casperjs v1.1](http://casperjs.org/) to take advantage of multiple phantomjs browsers with different user agents.\n\nFor instructions on how to install [Casperjs v1.1](http://casperjs.org/) go to http://docs.casperjs.org/en/latest/installation.html\n\n**Note: Testing requires Casperjs v1.1**\n\nInstall the grunt-cli dependency by running `npm install -g grunt-cli`\nRun `npm install` to install all dependencies including grunt and all tasks\n\nOnce Casperjs and the grunt-cli npm package is installed you can execute all the tests by using:\n\n\tnpm test\n\n## Development\n\n- Source hosted at [GitHub](https://github.com/gabceb/jquery-browser-plugin)\n- Report issues, questions, feature requests on [GitHub Issues](https://github.com/gabceb/jquery-browser-plugin/issues) \n\n## Attributions\n\n- [Examples and original implementation](http://api.jquery.com/jQuery.browser/)\n- [Original Gist used for the plugin](https://gist.github.com/adeelejaz/4714079)\n","maintainers":[{"name":"gabceb","email":"gabceb@gmail.com"}],"time":{"modified":"2022-06-19T05:18:06.194Z","created":"2014-03-03T22:27:47.440Z","0.0.5":"2014-03-03T22:27:47.440Z","0.0.6":"2014-03-31T01:15:10.673Z","0.0.7":"2014-12-15T03:48:58.057Z","0.0.8":"2015-07-06T04:00:32.031Z","0.1.0":"2015-11-23T19:59:42.020Z"},"homepage":"https://github.com/gabceb/jquery-browser-plugin","repository":{"type":"git","url":"git@github.com:gabceb/jquery-browser-plugin.git"},"bugs":{"url":"https://github.com/gabceb/jquery-browser-plugin/issues"},"license":"MIT","readmeFilename":"README.md","users":{"yisen":true}}