JSPM

active-x-obfuscator

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32912
  • Score
    100M100P100Q154552F

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

Package Exports

  • active-x-obfuscator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (active-x-obfuscator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.