Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:55:59+00:00 2026-06-04T23:55:59+00:00

a nice former developer wanted to make our lives harder before leaving our company

  • 0

a nice former developer wanted to make our lives harder before leaving our company and developed a whole javascript UI framework in one single line. I mean…probably he messed up after the development…

the point is… there are a lot of bugs I need to fix.. and I am wondering how you guys would approach to automatically indent the whole code.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:56:00+00:00Added an answer on June 4, 2026 at 11:56 pm

    a whole javascript UI framework in one single line

    The process of turning readable development code into gibberish production code is called minification/uglification. In a gist, this process optimizes the code for production use. Depending on the implementation, it could do (but not limited to) the following:

    • compress the code by removing whitespace (which turns it into a one-liner)
    • compress by renaming variables and functions into shorter ones
    • compress syntax by using alternative syntax (like ifs to ternaries, for to while)
    • remove dead/unreachable code

    how you guys would approach to automatically indent the whole code

    There are a lot of tools for this task:

    • You can use JSBeautifier, an online tool for formatting JS and HTML. Handy for a quick format. There’s a plugin for that if you happen to use Sublime Text editor.

    • If you use Grunt, there’s a JSBeautifier task built to perform the same functionality as the online version of JSBeautifier.

    • Chrome has a pretty print option in the Sources tab of dev tools. This indents the compressed code on the debugger (it does not modify the file).

    • If the file happens to have an accompanying source map (a file with the same name as the file of the code, but has a *.map extension), then you’re in luck. A source map is like a dictionary containing a mapping of the raw names with the compressed names. Source maps are supported in Chrome and Firefox dev tools, but not enabled by default. If you enable it, the browser will try to download them (assuming they are contained together with the minified file) and use them for view in the Source tab of the developer tools.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

svn offer lot of nice commands that make us able to know what is/did
Nice to meet you. I developed Windows application with VisualStudio so far. It was
Twitter has released a GUI framework/library called Bootstrap. Twitter Bootstrap is good quality, nice-looking,
Javascript provides us nice functions like toLocaleString , toLocaleTimeString etc. But I'm wondering -
Nice and (hopefully) easy. I am trying to work out how to grab the
There are nice SO question and answers about this issue, but these options didn't
I've seen some nice examples of jQuery sliders that select date ranges: http://ghusse.github.com/jQRangeSlider/stable/demo/ And
Skitch has this nice effect where it will draw its text on a white
i have a really nice style for my tables. { sorry links no more
I wrote a nice little game which works well in its .fla form. Because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.