Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
162
rated 0 times [  163] [ 1]  / answers: 1 / hits: 17487  / 15 Years ago, sat, january 30, 2010, 12:00:00

I used online YUI Compressor for minifying my javascript file... Now i got minified version of it but i lost the source as i uploaded the source javascript file without taking a copy of it...




  • How can i get source from a minified javascript file?


More From » minify

 Answers
47

You will have to work hard, but as a starting point I would recommend you to reformat and reindent the code, there are out there some tools to do it:





That as I said, will give you a starting point, you will need to know the code well to rename your variables and functions properly.



The last option would be to consider a rewrite, which if you know exactly what your script is meant to do, can take less time than refactoring the minified source...



And at last but not least I would recommend you to work always with a version control system and do backups often...


[#97710] Wednesday, January 27, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
savanar

Total Points: 237
Total Questions: 105
Total Answers: 99

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
;