# ieify

> Takes valid code, and makes it more valid for syntactically challenged environments (Internet explorer)

Latest version **1.2.0** (published 2015-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install ieify
pnpm add ieify
yarn add ieify
bun add ieify
```

Provides the command `ieify`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2015-06-11 |
| First published | 2014-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Maurice Butler |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/ieify
- Repository: https://github.com/KoryNunn/ieify
- Issues: https://github.com/KoryNunn/ieify/issues
- npm.io page: https://npm.io/package/ieify

## Dependencies (2)

- [recast](https://npm.io/package/recast.md) ^0.7.1
- [through](https://npm.io/package/through.md) ^2.3.4

## Recent versions

- 1.2.0 (latest) — 2015-06-11
- 1.1.0 — 2014-09-09
- 1.0.1 — 2014-09-08
- 1.0.0 — 2014-09-08

## README

# ieify

If you do something like this in a browser or node:

```javascript
var x = {};

x.case = 'things';
```

It will work.

However in many versions of internet explorer, it will error, with ```Unexpected identifier```
which is obviously because you used a reserved keyword.

ieify is a module that takes perfectly valid code, and makes it even more valider for syntactically challenged environments such as internet explorer.

## Usage:

```
npm install ieify
```

```javascript
var ieify = require('ieify');

var someCode = "var x = {class:'foo'}; x.switch = 'bar';"

ieify(someCode)
// -> var x = {"class":'foo'}; x["switch"] = 'bar';
```

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