aboutsummaryrefslogtreecommitdiffstats
path: root/signaling-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/Readme.md
blob: 34f2514e65b341719d09bfed9033768cfa2ff431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# active-x-obfuscator

A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside
any JavaScript code.

## Why?

Some corporate firewalls /proxies such as Blue Coat block JavaScript files to be
downloaded if they contain the word `'ActiveX'`. That of course is very annoying
for libraries such as [socket.io][] that need to use `ActiveXObject` for
supporting IE8 and older.

## Install

```
npm install active-x-obfuscator
```

## Usage

```js
var activeXObfuscator = require('active-x-obfuscator');
var code = 'foo(new ActiveXObject());';

var obfuscated = activeXObfuscator(code);
// -> foo(new window[(['Active'].concat('Object').join('X'))])
```

## License

Licensed under the MIT license.

[socket.io]: http://socket.io/