styleLess
Parses LESS, beautifies LESS then writes LESS all using LESS.js
Synopsis
Warning this is opinionated formatting, as it compresses lines that take up less than 81 chars into one line to be more concise.
.navbar `; @desired-menu-width: 950px; a:link, a:visited .nav-main /* * Comments after rule */} /* Comments between root rules */#main
Installation
npm install style-less
Usage
style-less ugly.less > pretty.less
Todo
- write a command line tool to make the above example work
- more test coverage (maybe I am still missing something within the less.js spec)
- options for formatting like, suppressing single-line compressions
- shorten synopsis and try to include as much of the less spec as possible