es-safe-ie

0.0.3 • Public • Published

es-safe-ie

AST transformations to make JS safe for IE 8 and lower.

For example from:

foo.finally();

to:

foo['finally']();

Usage

var transform = require('es-safe-ie');
transform(ast);

or on the command line:

$ cat script.js
foo.finally();
$ esparse script.js | es-safe-ie | uglify --spidermonkey
foo["finally"]();

Readme

Keywords

none

Package Sidebar

Install

npm i es-safe-ie

Weekly Downloads

1

Version

0.0.3

License

BSD-2-Clause

Last publish

Collaborators

  • arian