There are many different ways you can install PrettyCSS so it best fits with your needs.
You need to install node.js first. See their homepage for more information.
This installs PrettyCSS and lets you use the prettycss command-line interface right away. It requires root permissions on a Linux machine.
You can do basically the same thing as a global installation by running npm in a directory of your choosing. PrettyCSS will be downloaded and installed into ./node_modules/PrettyCSS and the binary will be in ./node_modules/.bin/prettycss. Adding that directory to your PATH will let you run prettycss from the command line.
After that, a simple
Another way to get this into your codebase would be to add it as a git submodule. In this example, we have a directory called
For more information on working with submodules on git, I have a page on this site that may help.
The command-line version is now in
Depending on your needs, you could just download bundle.js and put it into your codebase. Alternately, you can use the Git Submodule technique or install with npm like any of the above methods. Those all install the entire library, test suite, command-line programs and everything else.