# ie-class

> Adds a "ie[x]" class to body if browser is MSIE, [x] being the version.

Latest version **0.1.1** (published 2019-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ie-class
pnpm add ie-class
yarn add ie-class
bun add ie-class
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-02-27 |
| First published | 2019-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | @nachoaIvarez |
| Maintainers | nachoalvarez |

## Links

- npm: https://www.npmjs.com/package/ie-class
- Repository: https://github.com/nachoaIvarez/ie-class
- Homepage: https://github.com/nachoaIvarez/ie-class#readme
- Issues: https://github.com/nachoaIvarez/ie-class/issues
- npm.io page: https://npm.io/package/ie-class

## Recent versions

- 0.1.1 (latest) — 2019-02-27
- 0.1.0 — 2019-02-27
- 0.0.1 — 2019-02-27

## README

# 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:

```html
<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
```html
<script src="https://unpkg.com/ie-class@0.1.1/index.js"></script>
```
### Via package managers
```bash
yarn add ie-class
```
Then, in your code
```js
require('ie-class');
```

---
_Source: https://npm.io/package/ie-class · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
