Home

Awesome

Pacificator.js

inspired by Idiomatic CSS.

Build Status

What does it do?

Adds a standard syntax and indentation to css.

See all supported Rules.

How to install

Verify if you have node and npm installed.

Command Line

$ npm install -g pacificator

Module

$ npm install pacificator

Command Line Usage

Output the css pacificated.

$ pacificator <path>
<hr>

Output the css pacificated and choose the amount of tabs for indentation.

$ pacificator -t <path> <integer>
<hr>

Output the css pacificated and choose the amount of spaces for indentation.

$ pacificator -s <path> <integer>
<hr>

Show the project version.

$ pacificator --version
<hr>

Show all available commands.

$ pacificator --help

Module Usage

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);

Not supported yet

Report a bug :)

Contributing

Want to contribute? Follow these recommendations.

License

MIT License © Afonso Pacifer