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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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…