inspired by Idiomatic CSS.
Adds a standard syntax and indentation to css.
Verify if you have node and npm installed.
$ npm install -g pacificator
$ npm install pacificator
Output the css pacificated.
$ pacificator <path>
Output the css pacificated and choose the amount of tabs for indentation.
$ pacificator -t <path> <integer>
Output the css pacificated and choose the amount of spaces for indentation.
$ pacificator -s <path> <integer>
Show the project version.
$ pacificator --version
Show all available commands.
$ pacificator --help
var pacificator = require('pacificator'),
path = 'somePath/file.css';
/* Output the css pacificated. */
var output = pacificator.pacificate(path);
/* Output the css pacificated
and choose the amount of tabs for indentation. */
var output = pacificator.pacificateTab(path, 1);
/* Output the css pacificated
and choose the amount of spaces for indentation. */
var output = pacificator.pacificateSpace(path, 2);
- media queries syntax
- @charset syntax
- Shorthand syntax
- Other selectors (ex: .abc > a) syntax
- Animation syntax
Want to contribute? Follow these recommendations.