Skip to content

stoyan/prettyugly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uglify (strip spaces) or prettify (add consistent spaces) CSS code

"Ambition makes you look pretty ugly..."
~ Radiohead, Paranoid Android

Installation

$ npm install prettyugly

Usage

var prettyugly = require('../index.js');
var css =
  'a {background :  red ; color: blue}';
var ugly   = prettyugly.ugly(css);
var pretty = prettyugly.pretty(css);

The pretty result:

a {
  background: red;
  color: blue;
}

The ugly:

a{background:red;color:blue}

CLI

$ prettyugly pretty stuffs/example.css
$ prettyugly ugly stuffs/example.css

Playground

Available at http://prettyugly.csspatterns.com

About

Prettify or uglify CSS code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published