active-x-obfuscator
A module to (safely) obfuscate all occurrences of the string 'ActiveX' inside any JavaScript code.
Last updated 13 years ago by felixge .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install active-x-obfuscator 
SYNC missed versions from official npm registry.

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

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.

Current Tags

  • 0.0.2                                ...           latest (13 years ago)

2 Versions

  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |