Iman  Mohamadi
Iman Mohamadi

Reputation: 6829

Is there any open source library for tidy up Javascript using Javascript inside browser?

Is there any library that I can use to convert code like this:

function () {
var a = 1;
}

to code like this:

function () {
    var a = 1;
}

Inside my browser. Because I'm using gh-pages in Github I don't have a back-end so I'm looking only for browser based JavaScript solutions.

Upvotes: 0

Views: 57

Answers (1)

David Bradshaw
David Bradshaw

Reputation: 13077

This website will do it and has links to lots of plugin for different systems.

http://jsbeautifier.org/

Upvotes: 2

Related Questions