soundanalogous/Breakout — pull request #22 by xseignard (2012-09-17 18:43:04+00:00)
Title: NPM module and new arg to specify the root dir of the node.js server

Hello,
This refers to issue #21.

I created a package.json for npm. I hope the content is ok.
I stated the module would be used as a script rather than a library, so I put the following
```javascript
"preferGlobal": "true",
"bin": {
"breakout-server": "server.js"
}
```

It is deployed here : https://npmjs.org/package/breakout-server

To deploy it:
* create a npm user : `npm adduser`
* then go to the node_server directory and do `npm publish`

So a `npm install breakout-server` will install the `breakout-server` command.

But as it is a script now, we need a way to specify the root dir of the content node.js will serve.
So I added an arg to specify this dir. It defaults to the `pwd` dir (the current directory).
Also handles relative paths.

Regards,

Xavier