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