isaacs/npm — pull request #3205 by azer (2013-03-03 04:49:51+00:00)
Title: Create symlink if dependency has preferred name different than package name

This commit allows us have packages compatible with Component, solves Issue #3144.

The addition creates a symlink if package.json defines a dependency with a preferred name different than the NPM package name, like following;

```json
"dependencies": {
"foo": "azer/foo"
}
```

When the NPM registry name of the project located at github.com/azer/foo is not foo:

```json
{
"name": "azer-foo-component"
}
```