js-beautify
js-beautify copied to clipboard
Beautifier for javascript
In Javascript `
Fixes Issue: `var beautify = require('js-beautify/').js` not work, because js-beautifify index.js is located in `node_modules/js-beautify/js/index.js`. So 'js-beautify/js` is needed.
To reproduce: ``` npm i -g js-beautify curl https://app.cord.com/1.82.0/sidebar-eed1df1bbf4c2ba31c69ae11a7955e16.js >sidebar.js js-beautify -X -w 100 sidebar.js >beautified.js ``` Then open `beautified.js` in an editor and search for "addAnnotation". That will take...
was creating json that split the line between "-" and the numeric value. ex. ``` { "1234567891234567891234567891234": - 4 } ``` # Description - [x] Source branch in your fork...
# Description recursively sort json dicts by keys, mainly for json files disabled by default, and add an option to enable it # Input With this new feature, when I...
# Description > Can't beautify code # Input The code looked like this before beautification: ``` var __encode ='jsjiami.com',_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var _0xf56f=["\x69\x6E\x66\x6F","\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20\x73\x65\x72\x69\x65\x73\x20\x6F\x66\x20\x6A\x73\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x73\x2E","\x61\x64\x69\x6E\x66\x6F","\x44\x65\x66\x65\x6E\x64\x20\x79\x6F\x75\x72\x20\x6A\x73\x2E","\x77\x61\x72\x6E\x69\x6E\x67","\x54\x68\x69\x73\x20\x74\x6F\x6F\x6C\x20\x63\x61\x6E\x27\x74\x20\x65\x6E\x63\x72\x79\x70\x74\x20\x70\x68\x70\x2C\x20\x6A\x73\x70\x20\x61\x6E\x64\x20\x6F\x74\x68\x65\x72\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x20\x63\x6F\x6E\x74\x65\x6E\x74\x2E","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6C\x6F\x67","\u5220\u9664","\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A","\u671F\u5F39\u7A97\uFF0C","\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C","\x6A\x73\x6A\x69\x61","\x6D\x69\x2E\x63\x6F\x6D"];(function(_0xc77dx1,_0xc77dx2){_0xc77dx1[_0xf56f[0x0]]= _0xf56f[0x1];_0xc77dx2[_0xf56f[0x2]]= _0xf56f[0x3];_0xc77dx2[_0xf56f[0x4]]= _0xf56f[0x5]})(window,document);;;(function(_0xc77dx3,_0xc77dx4,_0xc77dx5,_0xc77dx6,_0xc77dx7,_0xc77dx8){_0xc77dx8= _0xf56f[0x6];_0xc77dx6= function(_0xc77dx9){if( typeof alert!== _0xc77dx8){alert(_0xc77dx9)};if(...
# Description Extra line created for css property # Input The code looked like this before beautification: ``` @media (-moz-touch-enabled:0), (pointer:fine) { .class1 button:hover, .class2 button:hover { color: #fff; background-color:...
It looks strange `js-beautify -r index.html`. Or maybe remove modules about CSS and HTML.
Here is my quick and easy design based off the JS logo: Any other designs, 👍 or even an organisation icon would probs be useful
# Description Is there a way to remove the spaces between curly braces? # Input The code looked like this before beautification: ``` function hello(){ } ``` # Expected Output...