{"id":19502140,"url":"https://github.com/cyberagent/beez-ua","last_synced_at":"2025-04-25T23:31:21.858Z","repository":{"id":12600811,"uuid":"15271750","full_name":"CyberAgent/beez-ua","owner":"CyberAgent","description":"The library deside which browser has an access from UserAgent for node.js or browser. This library is Forked from zepto.js.","archived":false,"fork":false,"pushed_at":"2018-02-26T05:25:00.000Z","size":221,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-18T22:32:37.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyberAgent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-18T02:27:14.000Z","updated_at":"2021-08-23T18:48:02.000Z","dependencies_parsed_at":"2022-08-28T11:31:58.833Z","dependency_job_id":null,"html_url":"https://github.com/CyberAgent/beez-ua","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberAgent%2Fbeez-ua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberAgent%2Fbeez-ua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberAgent%2Fbeez-ua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberAgent%2Fbeez-ua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyberAgent","download_url":"https://codeload.github.com/CyberAgent/beez-ua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:15:23.717Z","updated_at":"2025-04-25T23:31:21.476Z","avatar_url":"https://github.com/CyberAgent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"beez-ua\n=========\n\n## About\n\nThe library deside which browser has an access from _UserAgent_ for node.js or browser. This library is Forked from [zepto.js](http://zeptojs.com/).\n\n```sh\n[INFO] This library supports only smartphone browser.\n[WARN] UserAgent support are planning to do at any time.\n```\n\n## npm install (basic)\n\n```sh\n$ npm install beez-ua\n```\n\n## Installing from source code\n\n```sh\n$ git clone https://github.com/CyberAgent/beez-ua.git\n$ cd beez-ua\n$ npm install . # install deps lib\n```\n\n### installed via npm from github\n\n```sh\n$ npm install https://github.com/CyberAgent/beez-ua.git\n```\n\n## Release files\n\n```sh\n$ ll release\nbeez.ua.js (size: 8220 byte)[8.2kb] optimize none\nbeez.ua.min.js (size: 2957 byte)[2.9kb] optimize uglify2\n```\n\n## example\n\n```javascript\n\n$ node\n\u003e var beezua = require('beez-ua');\nundefined\n\n\u003e beezua.VERSION\n'0.4.7'\n\u003e beezua.setup('Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25')\nundefined\n\n\u003e beezua. [tab*2]\nbeezua.__defineGetter__      beezua.__defineSetter__      beezua.__lookupGetter__      beezua.__lookupSetter__      beezua.constructor           beezua.hasOwnProperty\nbeezua.isPrototypeOf         beezua.propertyIsEnumerable  beezua.toLocaleString        beezua.toString              beezua.valueOf\n\nbeezua.VERSION               beezua.android               beezua.bb10                  beezua.blackberry            beezua.browser               beezua.chrome\nbeezua.ds                    beezua.firefox               beezua.ipad                  beezua.iphone                beezua.kindle                beezua.os\nbeezua.playbook              beezua.ps3                   beezua.psp                   beezua.psvita                beezua.rimtabletos           beezua.safari\nbeezua.setup                 beezua.silk                  beezua.touchpad              beezua.webkit                beezua.webos                 beezua.wii\nbeezua.windowsphone\n\n\u003e beezua.os\n{ iphone: true,\n  ios: true,\n  version: '6.0',\n  tablet: false,\n  phone: true }\n\u003e beezua.browser\n{ webkit: true, version: '536.26' }\n\u003e beezua.android\nnull\n\u003e beezua.iphone\n[ 'iPhone OS 6_0',\n  'iPhone OS',\n  '6_0',\n  index: 25,\n  input: 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25' ]\n\n```\n\n## Requirements\n\n- [Underscore.js](http://underscorejs.org/)\n- [mocha](http://visionmedia.github.com/mocha/)\n- [Chai](http://chaijs.com/)\n- [JSHint](http://www.jshint.com/)\n- [plato](https://github.com/jsoverson/plato)\n- [jsdoc3](https://github.com/jsdoc3/jsdoc)\n- [should](https://npmjs.org/package/should)\n\n\n\n## test (browser)\n\n```sh\n$ cd beez-ua/\n$ open spec/index.html\n```\n\n## test (node.js)\n\n```sh\n$ make test\n```\n\n## build\n\n```sh\n$ make build\n```\n\n## jshint\n\n```sh\n$ make jshint\n```\n\n## jsdoc\n\n```sh\n$ make jsdoc\n$ open ./docs/index.html\n```\n\n## report [plato](https://github.com/jsoverson/plato)\n\n```sh\n$ make test\n\n####################\n# -- target: test\nnode_modules/mocha/bin/mocha test/test-*.js\n\n\n  beez-ua\n    ✓ window.nagigator.userAgent\n    ✓ ua.Android 2.1\n    ✓ ua.Android 2.2\n    ✓ ua.Android 2.3\n    ✓ ua.Android 3.x\n    ✓ ua.Android 4.x\n    ✓ ua.iphone (IOS4)\n    ✓ ua.iphone (IOS5)\n    ✓ ua.iphone (IOS6)\n    ✓ ua.iphone (IOS7)\n    ✓ ua.iphone (IOS4-ipad)\n    ✓ ua.iphone (IOS5-ipad)\n    ✓ ua.iphone (IOS6-ipad)\n    ✓ ua.iphone5 (hardware)\n    ✓ ua.blackberry\n    ✓ ua.webos\n    ✓ ua.touchpad\n    ✓ ua.kindle\n    ✓ ua.silk\n    ✓ ua.bb10\n    ✓ ua.rimtabletos\n    ✓ ua.playbook\n    ✓ ua.ds\n    ✓ ua.psp\n    ✓ ua.psvita\n    ✓ ua.windowsphone\n    ✓ ua.safari\n    ✓ ua.xbox\n\n\n  28 passing (29ms)\n```\n\n\n## Contributing\n\n- Kei FUNAGAYAMA - [@fkei](https://twitter.com/fkei) [github](https://github.com/fkei)\n- Kazuma MISHIMAGI - [@maginemu](https://twitter.com/maginemu) [github](https://github.com/maginemu)\n\n## Reference Projects\n\nProjects that incorporate some of the source code UserAgent [zepto.js](http://zeptojs.com/)\n\n\n## Copyright\n\nCyberAgent, Inc. All rights reserved.\n\n## LICENSE\n\n@see : [LICENSE](https://raw.github.com/CyberAgent/beez-ua/master/LICENSE)\n\n```\nThe MIT License (MIT)\n\nCopyright © CyberAgent, Inc. All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n```\n\nThis library is forked from [zepto.js](http://zeptojs.com/) that is [MIT License](https://raw.github.com/madrobby/zepto/master/MIT-LICENSE)\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/CyberAgent/beez-ua/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberagent%2Fbeez-ua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberagent%2Fbeez-ua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberagent%2Fbeez-ua/lists"}