ie-class

0.1.1 • Public • Published

ie-class

What

Adds a ie[x] class in your body tag, x being the IE version (if any).

For example, if your user is using IE9, their body tag will be like:

<body class="ie9">

Why

Because most feature detection libraries are bloated and some of us just need to know if the user is using IE.

How

HTML

<script src="https://unpkg.com/ie-class@0.1.1/index.js"></script>

Via package managers

yarn add ie-class

Then, in your code

require('ie-class');

Readme

Keywords

none

Package Sidebar

Install

npm i ie-class

Weekly Downloads

13

Version

0.1.1

License

MIT

Unpacked Size

1.25 kB

Total Files

3

Last publish

Collaborators

  • nachoalvarez