tivac/yui-configger — pull request #4 by evocateur (2012-06-20 01:36:52+00:00)
Title: Cli vs lib

We should make the core of the library more re-usable, instead of tightly binding CLI argument parsing with the actual logic of the utility.

When npm installs this shell script on Windows, a .cmd helper is automagically created to interface with it. (the shebang is ignored)

The index.js pattern is for programmatic use (via `require("yui-configger")`) in other node scripts (I'm pretty sure it's handled by the "main" `package.json` config, anyway). This is more idiomatic npm. :)

Instead of `node index.js -r tests\data`:
```
# in yui-configger repo root
npm -g install .
# anywhere afterward
yui-configger -r path/to/root
```

I probably should've kept these two refactors separate, but they just make so much sense together.