{"id":21334310,"url":"https://github.com/aristocr2t/obh","last_synced_at":"2026-05-11T09:23:36.481Z","repository":{"id":57143144,"uuid":"130870017","full_name":"aristocr2t/obh","owner":"aristocr2t","description":"Outdated-Browser Handler","archived":false,"fork":false,"pushed_at":"2018-04-26T15:19:53.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T14:22:40.016Z","etag":null,"topics":["browser","handler","javascript","outdated"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/aristocr2t.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":"2018-04-24T14:48:39.000Z","updated_at":"2018-04-26T20:09:16.000Z","dependencies_parsed_at":"2022-09-05T11:50:24.109Z","dependency_job_id":null,"html_url":"https://github.com/aristocr2t/obh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aristocr2t%2Fobh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aristocr2t%2Fobh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aristocr2t%2Fobh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aristocr2t%2Fobh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aristocr2t","download_url":"https://codeload.github.com/aristocr2t/obh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243812051,"owners_count":20351824,"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":["browser","handler","javascript","outdated"],"created_at":"2024-11-21T23:20:00.005Z","updated_at":"2026-05-11T09:23:36.402Z","avatar_url":"https://github.com/aristocr2t.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Outdated-Browser Handler\nhelps to detect old browsers and show warning message. Browser detection's based on [bowser](https://github.com/lancedikson/bowser).\n\n## Installation\n`npm install obh --save`\n\n## How to use\n```typescript\nconst { OutdatedBrowserHandler } from 'obh';\n\nOutdatedBrowserHandler.handle(document.body, {\n  minVersions: {\n    msie: '10',\n    ios: '7.1',\n    safari: '6.1',\n    firefox: '28',\n    opera: '12.1',\n    edge: '12',\n    chrome: '21',\n    android: '4'\n  },\n  sourceUrl: 'https://path/to/file.html',\n  userAgent: navigator.userAgent\n}).then(isOkay =\u003e {\n  if (isOkay) {\n    \u003c...\u003e // continue to work\n  }\n});\n```\nor you can use\n```typescript\nconst { OutdatedBrowserHandler } from 'obh';\n\nOutdatedBrowserHandler.handle(document.body, {\n  minVersions: {\n    msie: '10',\n    ios: '7.1',\n    safari: '6.1',\n    firefox: '28',\n    opera: '12.1',\n    edge: '12',\n    chrome: '21',\n    android: '4'\n  },\n  template: `\n    \u003ch1\u003eYour browser is outdated\u003c/h1\u003e\n  `,\n  userAgent: navigator.userAgent\n}).then(isOkay =\u003e {\n  if (isOkay) {\n    \u003c...\u003e // continue to work\n  }\n});\n```\n\n## License\nLicensed as MIT. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faristocr2t%2Fobh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faristocr2t%2Fobh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faristocr2t%2Fobh/lists"}