0.1.1 • Published 12 years ago

module_resolve v0.1.1

Weekly downloads
4
License
-
Repository
-
Last release
12 years ago

Adds a resolve(path) method to the Module prototype.

Node.js has a pretty powerful and intuitive resource path resolution algorithm, which is useful for other things besides source files. To use it for looking-up other files, we need to be able to lookup relative to the module from which the file is being sought. This patches in that functionality using private methods of the Module object, so it's not an ideal solution.

A better solution would be for node.js to integrate this method. Even better would be if it provided a async implementation as well.

See bug 3285.

0.1.1

12 years ago