Turn minified JS into readable JS

Another cool site.

http://jsbeautifier.org/

Sometimes when you are trying to figure out what’s going on in some minified javascript, it’s quite difficult to read.  Just copy and paste it into jsbeautifier and press Ctrl+Enter.

Here is the jquery source before (1 giant line):

image

and after (notice the scrollbar difference on the right):

image

Cool.

Advertisement

Typescript

I came across Typescript today from Microsoft.  It’s a superset of Javascript, that allows you to write a bunch of Javascript-like code and have it compile into Javascript.  The main benefit here that I see is intellinsense and getting type checks at compile time.

Wouldn’t you love to write Javascript like this?

image

Nice intellisense!

Visual Studio picture