Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / active-x-obfuscator / Readme.md
1 # active-x-obfuscator
2
3 A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside
4 any JavaScript code.
5
6 ## Why?
7
8 Some corporate firewalls /proxies such as Blue Coat block JavaScript files to be
9 downloaded if they contain the word `'ActiveX'`. That of course is very annoying
10 for libraries such as [socket.io][] that need to use `ActiveXObject` for
11 supporting IE8 and older.
12
13 ## Install
14
15 ```
16 npm install active-x-obfuscator
17 ```
18
19 ## Usage
20
21 ```js
22 var activeXObfuscator = require('active-x-obfuscator');
23 var code = 'foo(new ActiveXObject());';
24
25 var obfuscated = activeXObfuscator(code);
26 // -> foo(new window[(['Active'].concat('Object').join('X'))])
27 ```
28
29 ## License
30
31 Licensed under the MIT license.
32
33 [socket.io]: http://socket.io/