obfuscator
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -90,4 +90,4 @@ # Obfuscator Documentation | ||
utils.strings('var foo = "foo"';); | ||
//=> 'var foo = "\\x66\\x6f\\x6f";' | ||
//=> 'var foo = "\x66\x6f\x6f";' | ||
``` | ||
0.5.0 / 2014-09-30 | ||
================== | ||
* require: Fallback to the native `require()` | ||
* .jshintrc: Relax options | ||
* examples: Add a "non-included file" example | ||
* Readme: Add note about stupid usage of `require()` | ||
* docs: Use escaped string | ||
0.4.2 / 2014-04-07 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -20,4 +20,9 @@ | ||
if (!module) | ||
throw new Error('failed to require "' + p + '" from ' + root); | ||
if (!module) { | ||
try { | ||
return native_require(p); | ||
} catch (err) { | ||
throw new Error('failed to require "' + p + '" from ' + root); | ||
} | ||
} | ||
@@ -24,0 +29,0 @@ if (!module.exports) { |
{ | ||
"name": "obfuscator", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "make all" |
@@ -8,6 +8,2 @@ | ||
## Installation | ||
Standard node install via [npm]: `npm i obfuscator` | ||
## Why? | ||
@@ -31,3 +27,3 @@ | ||
> **me**: so is [un-obfuscating javascript]! | ||
> **me**: so is [un-obfuscating javascript](http://github.com/stephenmathieson/node-obfuscator)! | ||
@@ -75,7 +71,7 @@ ## Usage | ||
Also see [acceptance tests] or the [docs]. | ||
Also see [acceptance tests](https://github.com/stephenmathieson/node-obfuscator/tree/master/test/acceptance) or the [docs](https://github.com/stephenmathieson/node-obfuscator/tree/master/docs.md). | ||
## How it Works | ||
Think [browserify] only for node, plus [UglifyJs]. Your entire project will be concatenated into a single file. This file will contain a stubbed `require` function, which will handle everything for you. This single file will be run through [UglifyJs], making it more difficult to read. | ||
Think [browserify](https://github.com/substack/node-browserify) only for node, plus [UglifyJs](https://github.com/mishoo/UglifyJS2). Your entire project will be concatenated into a single file. This file will contain a stubbed `require` function, which will handle everything for you. This single file will be run through [UglifyJs](https://github.com/mishoo/UglifyJS2), making it more difficult to read. | ||
@@ -89,12 +85,4 @@ Undoing this process is hopefully as painful as decompiling java bytecode. | ||
- you're not able to do silly things with `module.` | ||
- dynamically built `require()`s are not supported; chances are, there's a significantly cleaner way of handling loading your depenencies anyway. | ||
## Contributing | ||
Do it, but add tests for your changes. Tests should be written with [Mocha]. | ||
## Release History | ||
See [History.md](https://github.com/stephenmathieson/node-obfuscator/blob/master/History.md) | ||
## License | ||
@@ -124,10 +112,1 @@ | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
[npm]: https://github.com/isaacs/npm | ||
[un-obfuscating javascript]: http://github.com/stephenmathieson/node-obfuscator | ||
[browserify]: https://github.com/substack/node-browserify | ||
[UglifyJS]: https://github.com/mishoo/UglifyJS2 | ||
[Mocha]: https://github.com/visionmedia/mocha | ||
[acceptance tests]: https://github.com/stephenmathieson/node-obfuscator/tree/master/test/acceptance | ||
[docs]: https://github.com/stephenmathieson/node-obfuscator/tree/master/docs.md |
19884
422
108