npm/ndm — pull request #48 by seanewest (2014-08-04 06:29:18+00:00)
Title: global npm packages (#39)

I implemented a minimalist solution for global npm packages:

```ndm -g ```

```bash
ndm generate -g
ndm interview -g
ndm start -g
ndm stop -g
#etc ...
```

If you want to see this interface in action, I'm using it for my project [npmfs](https://github.com/seanewest/npmfs/tree/ndm_global)

I see a couple of benefits in doing it this way:
* looks just like ```npm install -g ```
* avoids name collision with ```npm start ```
* relatively simple change

There are three main things currently missing (at least from how this feature was discussed):
* the syntax ```npm ``` is not supported
* ```npm start ``` currently runs just like it does for local ndm wrappers and does not shortcut the interview -> generate -> start process.
* It uses another flag ```--prefix``` which defaults to ```/usr/local``` to determine the location of npm modules, rather than programatically asking npm. The npm module requires an async [load](https://www.npmjs.org/doc/README.html#using-npm-programmatically) method which I was having a hard time working in with the currently synchronous initialization phase.

I'd like to hear your feedback and suggestions.