Skip to content

rohitaryal/un-uglify.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Un-uglify your ugly CSS by removing comments, unwanted linebreaks, tabs, etc.

📁 Requirements

  • nodejs

🍭 How to use?

git clone https://github.com/rohitaryal/CSSort.git
cd un-uglify.js
node unuglify.js samples/sample1.css out.css
cat out.css

😕 What does it do?

Takes this CSS

body {
    background-color: #ff00ff; /* Bright magenta background */
    color: #00ff00; /* Neon green text color */
    font-size: 2em; /* Large font size */
    text-align: center; /* Centered text */
    line-height: 3em; /* Very large line height */
    margin: 50px; /* Large margin */
    padding: 50px; /* Large padding */
    border: 10px dashed #0000ff; /* Thick dashed blue border */
}

And makes this

body {
    margin: 50px;
    padding: 50px;
    color: #00ff00;
    font-size: 2em;
    line-height: 3em;
    text-align: center;
    background-color: #ff00ff;
    border: 10px dashed #0000ff;
}

🎅 More bugs to fix and a lot to do.

About

Un-uglify your ugly CSS.

Topics

Resources

License

Stars

Watchers

Forks