Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/node-active-x-obfuscator
A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.
https://github.com/felixge/node-active-x-obfuscator
Last synced: about 2 months ago
JSON representation
A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.
- Host: GitHub
- URL: https://github.com/felixge/node-active-x-obfuscator
- Owner: felixge
- License: mit
- Created: 2012-02-28T09:02:25.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-04T07:14:09.000Z (about 10 years ago)
- Last Synced: 2024-10-11T15:18:48.293Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 136 KB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![build status](https://secure.travis-ci.org/felixge/node-active-x-obfuscator.png)](http://travis-ci.org/felixge/node-active-x-obfuscator)
# active-x-obfuscatorA 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/