Hacker News new | ask | show | jobs
by kpcyrd 3111 days ago
Minified javascript isn't really open source either.
2 comments

Non-minified JavaScript with good comments documenting its behavior isn’t (necessarily) open source either.

That you can read the code (or that it doesn’t claim a license) doesn’t make code open source.

Sure, but that definition of opensource wasn't implied with "closed source due to wasm".
No, but there are tons of prettifiers that can get minified/obfuscated JS back into a state that it can be read and reasoned about fairly easily. It's not like minifiying/obfuscating JS compiles it into byte code. It's still plain text.
As we can use a decompiler with other languages.
Barely! It's not far from bytecode in some cases, especially with the advent of asm.js.
Do you or anyone else have any recommendations for a good tool to recover minified java script?
http://jsnice.org works well, though misses many oportunities of restoring variable names based on property names which cannot be minified.