Coder Social home page Coder Social logo

js-beautify's Introduction

 JS Beautifier
---------------

  ...or, more specifically, all of the code powering jsbeautifier.org.

  This little beautifier will reformat and reindent bookmarklets, ugly
  javascript, unpack scripts packed by the popular Dean Edward's packer,
  as well as deobfuscate scripts processed by javascriptobfuscator.com.

  To beautify from the command-line you can use provided jsbeautifer.py
  script/library. Run it to see its usage information; e.g
  "./jsbeautifier.py file.js" beautifies a file, output goes to stdout.

  To use jsbeautifier.py as a library is simple:

    import jsbeautifier
    res = jsbeautifier.beautify('your javascript string')
    res = jsbeautifier.beautify_file('some_file.js')

  or, to specify some options,

    opts = jsbeautifier.default_options()
    opts.indent_size = 2
    res = jsbeautifier.beautify('some javascript', opts)

  Note that only the html+js version supports unpacking various packers.

  You are free to use this in any way you want, in case you find this
  useful or working for you.

  Written by Einar Lielmanis, <[email protected]>

  Thanks to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, Dave
  Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Hull and
  others.

js-beautify's People

Contributors

einars avatar ariya avatar rcopera avatar jessthrysoee avatar tilla avatar gimmi avatar fitzgen avatar nsossonko avatar courts avatar tylerrick avatar

Stargazers

Irakli Gozalishvili avatar

Watchers

Irakli Gozalishvili avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.