add-ie-classname

1.1.0 • Public • Published

Add IE className to document

Quick drop-in plugin adaptation of detectie.
Adds the following classes to the HTML classlist:

  • 'js'
  • When IE is detected:
    • 'ie'
    • 'ie' with version number
var isIE = require('add-ie-classname')();
console.log(isIE); // True if IE browser

Running Tests client side

make sure you have webpack installed globally

npm install webpack -g

compile test.js to a bundle with webpack

npm test

open test.html to view the tests in the browser

License

MIT

Dependents (0)

Package Sidebar

Install

npm i add-ie-classname

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • floscr