beautify-with-words beautifies javascript and replaces variable names with unique

zertosh / beautify-with-words

submited by
Style Pass
2021-06-15 19:30:12

beautify-with-words beautifies javascript and replaces variable names with unique "long-ish words". It uses UglifyJS2's beautifier, but uses a phonetic word generator to rename variables. This makes it easier less-hard to read unminified code and do things like search-and-replace.

code is a string of the code you want to beautify. options is optional, and must be an object. It has a b property, which is an object of the options to be passed to UglifyJS2.

Leave a Comment
Related Posts