Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohitaryal/un-uglify.js
Un-uglify your ugly CSS.
https://github.com/rohitaryal/un-uglify.js
css css-beautify
Last synced: about 1 month ago
JSON representation
Un-uglify your ugly CSS.
- Host: GitHub
- URL: https://github.com/rohitaryal/un-uglify.js
- Owner: rohitaryal
- License: mit
- Created: 2024-05-22T08:14:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-15T11:12:55.000Z (7 months ago)
- Last Synced: 2024-06-15T12:29:31.531Z (7 months ago)
- Topics: css, css-beautify
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Un-uglify your ugly CSS by removing comments, unwanted linebreaks, tabs, etc.### 📁 Requirements
- nodejs### 🍭 How to use?
```bash
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
```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
```css
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.