Rendr flavored AMDefine to allow relative path requires for app modules.

npm install rendr-amdefine
2 downloads in the last day
25 downloads in the last week
182 downloads in the last month


AMDefine adapter for Rendr apps.

Allows to use relative to project's root paths to match require paths on the client when you're using Rendr+RequireJS.


if (typeof define !== 'function') {
  var define = require('rendr-amdefine')(module);

  // works both in node and on the client
  var deps = [

  require(deps, function()
    // ...


To use within test frameworks (like jasmin) add following line to your test suite:


It will set basePath as parent folder of the node_modules directory that contains rendr-amdefine.

For the case where it's not applicable you can directly manipulate basePath by using:

npm loves you