{"id":18078355,"url":"https://github.com/techgaun/browser-dead","last_synced_at":"2025-04-05T20:40:40.235Z","repository":{"id":143865818,"uuid":"72686875","full_name":"techgaun/browser-dead","owner":"techgaun","description":"Identify old and unsupported browsers simple easy way","archived":false,"fork":false,"pushed_at":"2016-11-12T07:12:34.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T10:38:15.810Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-02T22:29:16.000Z","updated_at":"2016-12-20T05:45:24.000Z","dependencies_parsed_at":"2023-12-09T00:30:22.094Z","dependency_job_id":null,"html_url":"https://github.com/techgaun/browser-dead","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/techgaun%2Fbrowser-dead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fbrowser-dead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fbrowser-dead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fbrowser-dead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/browser-dead/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399898,"owners_count":20932876,"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-10-31T12:13:40.990Z","updated_at":"2025-04-05T20:40:40.194Z","avatar_url":"https://github.com/techgaun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browser-dead\n\n\u003e Inform users that their browser is unsupported by your website\n\n## Installation\n\n### as node module\n\n```shell\nnpm i --save browser-dead\n```\n\n### as browser script\n\nDownload [browser-dead.min.js](https://raw.githubusercontent.com/techgaun/browser-dead/master/dist/browser-dead.min.js) and place it in appropriate directory of your choice.\n\n```shell\nwget \"https://raw.githubusercontent.com/techgaun/browser-dead/master/dist/browser-dead.min.js\" -O browser-dead.min.js\n```\n\nInclude the script in your html:\n\n```html\n\u003cscript src=\"/path/to/browser-dead.min.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n```\n\nDownload [browser-dead.min.css](https://raw.githubusercontent.com/techgaun/browser-dead/master/dist/css/browser-dead.min.css) and place it in appropriate directory of your choice.\n\n```shell\nwget https://raw.githubusercontent.com/techgaun/browser-dead/master/dist/css/browser-dead.min.css -O browser-dead.min.css\n```\n\nInclude the stylesheet in your html:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/path/to/browser-dead.min.css\" media=\"screen\"\u003e\n```\n\n## Usage\n\nAdd a html element with content inside it as you wish.\n\n```html\n\u003cdiv id=\"browser-dead\"\u003e\n  Unsupported browser\n\u003c/div\u003e\n```\n\nIf using the node module, in your source files, import the `browser-dead` module and then initialize as below:\n\n```javascript\nimport browserDead from 'browser-dead'\n\nbrowserDead({\n  background: #f00,\n  color: #fff,\n  supportBreakpoint: 'promise',\n  browserDead: 'browser-dead'\n})\n```\n\nIf directly using in html, place the initialization code right below the script tag:\n\n```html\n\u003cscript src=\"/path/to/browser-dead.min.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  browserDead({\n    background: #f00,\n    color: #fff,\n    supportBreakpoint: 'promise',\n    browserDead: 'browser-dead'\n  })\n\u003c/script\u003e\n```\n\n### Examples\n\n- [Promise (\u003c=IE11)](https://techgaun.github.io/browser-dead/examples)\n- [transform(\u003c=IE8)](https://techgaun.github.io/browser-dead/examples/transform.html)\n- [borderImage(\u003c=IE10)](https://techgaun.github.io/browser-dead/examples/borderImage.html)\n- [borderSpacing(\u003c=IE7)](https://techgaun.github.io/browser-dead/examples/borderSpacing.html)\n\n## Support Breakpoint\n\nRefer to [caniuse.com](http://caniuse.com) to know what support breakpoint can you use for your scenario. Below are some of the common ones that you can use as breakpoints to not support your choices of browsers:\n\n- `promise` (\u003c= IE11) - [Promise check](http://caniuse.com/#search=promise) is a special implementation in browser-dead which is useful for detecting IE11 properly if you do not wish to support IE11 and below.\n- `transform` (\u003c= IE8) - [CSS transform](http://caniuse.com/#search=transform)\n- `borderImage` (\u003c= IE10) - [CSS Border Image](http://caniuse.com/#search=border)\n- `borderSpacing` (\u003c= IE7) - [CSS Border Spacing](https://msdn.microsoft.com/en-us/library/cc304069(v=vs.85).aspx)\n\n## Contributing\n\n- Fork the repo and clone locally\n- `npm i`\n- `npm run dev`\n- Open examples at `http://localhost:3000/examples/` and see what they do with your changes\n- Change or Add examples to play around\n- Create pull request\n\nAlso, feel free to contribute by providing more breakpoints.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fbrowser-dead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fbrowser-dead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fbrowser-dead/lists"}