tobie/modulr-node — Issue #9: package mains with extensions
Author: phleet
Created: 2011-12-05 19:01:32+00:00
State: open

This is the `package.json` for underscore.js:

```javascript
{
"name" : "underscore",
"description" : "JavaScript's functional programming helper library.",
"homepage" : "http://documentcloud.github.com/underscore/",
"keywords" : ["util", "functional", "server", "client", "browser"],
"author" : "Jeremy Ashkenas ",
"contributors" : [],
"dependencies" : [],
"repository" : {"type": "git", "url": "git://github.com/documentcloud/underscore.git"},
"main" : "underscore.js",
"version" : "1.2.2"
}
```

Trying to `require('underscore')` fails because it tries to require `underscore.js.[js|coffee]`.

If the extension is already present, it should not try to append extensions.

node supports `main` properties like this.