csscomb/csscomb.js — pull request #129 by tonyganch (2013-12-12 15:21:11+00:00)
Title: Pass config to `new Comb()` and make it chainable (#102)

Issue #102

You can now create new Comb instance and configure it at the same time.
To use one of predefined configs, pass its name:

```js
var comb = new Comb('zen'); // or `csscomb`, or `yandex`
```

To use custom config, pass its object:

```js
var comb = new Comb({ 'always-semicolon': true });
```

Also `new Comb()` and `configure()` are chainable now.
It means you can do things like:

```js
// Init, configure and process:
var combed = new Comb('csscomb').processString('a { color: tomato }');

// Comb a file with one line of code:
new Comb().configure({ 'always-semicolon': true }).processFile('panda.less');
```

![tumblr_llzisecxii1qii6tmo1_400](https://f.cloud.github.com/assets/872004/1733984/ce4b5be4-633f-11e3-8694-4cc01d10e99e.gif)