{"id":20622591,"url":"https://github.com/myterminal/not-for-ie","last_synced_at":"2026-06-06T15:02:40.768Z","repository":{"id":56858191,"uuid":"136503822","full_name":"myTerminal/not-for-ie","owner":"myTerminal","description":"A mini-library to declare that your web application is not designed to run in Internet Explorer","archived":false,"fork":false,"pushed_at":"2022-08-19T04:53:54.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T10:43:44.632Z","etag":null,"topics":["cross-browser","web-application"],"latest_commit_sha":null,"homepage":"","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/myTerminal.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-06-07T16:26:42.000Z","updated_at":"2022-08-03T23:32:28.000Z","dependencies_parsed_at":"2022-09-12T19:10:43.637Z","dependency_job_id":null,"html_url":"https://github.com/myTerminal/not-for-ie","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/myTerminal%2Fnot-for-ie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fnot-for-ie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fnot-for-ie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fnot-for-ie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myTerminal","download_url":"https://codeload.github.com/myTerminal/not-for-ie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242300868,"owners_count":20105311,"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":["cross-browser","web-application"],"created_at":"2024-11-16T12:23:37.921Z","updated_at":"2025-03-06T23:24:16.336Z","avatar_url":"https://github.com/myTerminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# not-for-ie\n\n[![npm version](https://badge.fury.io/js/not-for-ie.svg)](https://badge.fury.io/js/not-for-ie)\n[![npm downloads](https://img.shields.io/npm/dt/not-for-ie.svg)](https://www.npmjs.com/package/not-for-ie)\n[![License](https://img.shields.io/github/license/myTerminal/not-for-ie.svg)](https://opensource.org/licenses/MIT)  \n[![Build Status](https://travis-ci.org/myTerminal/not-for-ie.svg?branch=master)](https://travis-ci.org/myTerminal/not-for-ie)\n[![Code Climate](https://codeclimate.com/github/myTerminal/not-for-ie.png)](https://codeclimate.com/github/myTerminal/not-for-ie)\n[![js-myterminal-style](https://img.shields.io/badge/code%20style-myterminal-blue.svg)](https://www.npmjs.com/package/eslint-config/myterminal)\n[![Coverage Status](https://img.shields.io/coveralls/myTerminal/not-for-ie.svg)](https://coveralls.io/r/myTerminal/not-for-ie?branch=master)  \n[![NPM](https://nodei.co/npm/not-for-ie.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/not-for-ie/)\n\nA mini-library to declare that your web application is not designed to run in Internet Explorer\n\n## Features\n\n* Appends a specified CSS class to HTML body on activation\n* Provides a method to detect IE\n\n## How to Use\n\n### Directly from a web page\n\nOne can use *not-for-ie* directly from a web-page by attaching the *not-for-ie.js* and *not-for-ie.css* to the DOM.\n\n    \u003c!-- Attaching the not-for-ie script --\u003e\n    \u003cscript type=\"text/javascript\" src=\"path/to/library/not-for-ie.js\"\u003e\u003c/script\u003e\n    \n    \u003c!-- Usage --\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n        notForIe.activate('ie');\n    \u003c/script\u003e\n\n### With [Webpack](https://webpack.js.org), [Browserify](http://browserify.org) or [RequireJS](http://requirejs.org)\n\nInstall *not-for-ie* from NPM\n\n    npm install not-for-ie --save-dev\n\nConsume as an ES6 module\n\n    import * as notForIe from 'not-for-ie';\n\nor\n\n    import { isIe } from 'not-for-ie';\n\nConsume as a CommonJS module\n\n    var notForIe = require('not-for-ie');\n\nConsume as an AMD\n\n    require(['not-for-ie'], function (notForIe) {\n        // Consume notForIe\n    }\n\nNote: You may have to use [Babel](https://babeljs.io) for ES6 transpilation.\n\n### Methods\n\n#### `activate`\n\nAppends the specified CSS class to the HTML `body` element.\n\n    notForIe.activate('ie');\n\n#### `isIe`\n\nDetermines whether the application is known to be running within Internet Explorer.\n\n    if (notForIe.isIe()) {\n        // Running within IE\n    }\n\n## Demo\n\nYou can view a demo [here](https://myterminal.github.io/not-for-ie/examples).\n\n## To-do\n\n* Write unit-tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fnot-for-ie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyterminal%2Fnot-for-ie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fnot-for-ie/lists"}