A hookable AMD module resolution implementation.


Implements the AMD module resolution algorithm, and supports common config.

The purpose of this module is to assist AMD tooling, including optimizers and compilers, that need to perform module resolution during a build step or as part of an application server.

This is analogous to James Halliday's resolve, which implements Node's algorithm.

$ npm install amd-resolve

Synchronously lookup the location of module bar, using options defined by common config.

resolve.sync('bar', { baseUrl: 'webapp/lib' })
$ npm install
$ make test

The MIT License

Copyright (c) 2012-2013 Jared Hanson <>