Sha256: 9ce8140f0dcda6a5ddf35129cbf1cd76f2b1e3c3e68783e363bbf5cda4ee8af7
Contents?: true
Size: 746 Bytes
Versions: 17
Compression:
Stored size: 746 Bytes
Contents
# 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/
Version data entries
17 entries across 17 versions & 2 rubygems