0.1.0 • Published 8 years ago

pacificator v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Pacificator.js

inspired by Idiomatic CSS.

What does it do?

Adds a standard syntax and indentation to css.

npm.io

See all 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>

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

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

  • media queries syntax
  • @charset syntax
  • Shorthand syntax
  • Other selectors (ex: .abc > a) syntax
  • Animation syntax

Report a bug :)

Contributing

Want to contribute? Follow these recommendations.

Licence

MIT Licence © Afonso Pacifer

0.1.0

8 years ago

0.2.0

8 years ago