Rehan
Rehan

Reputation: 4013

How to get back uglified js

I had an old project that had been uglified using gulp-uglify. I need to work on that project now.

How do I bring it back to normal readable js?

Upvotes: 1

Views: 843

Answers (2)

lehtu
lehtu

Reputation: 907

This is an old question, but still. Here is a working solution for making uglified js back to human readable: https://github.com/jehna/humanify

Upvotes: 0

Tsvetan Ganev
Tsvetan Ganev

Reputation: 8856

You cannot "reverse" uglified code. It's a one-way process. The best you can achieve is to beautify the code (indentation and other cosmetic fixes) but you cannot restore the original variable names.

Upvotes: 1

Related Questions