index.js
function docme(readme, args, jsdocargs, cb) {
  args = args || {};
  jsdocargs = jsdocargs || [];

  log.level = args.loglevel || 'info';  
  
  var projectRoot = args.projectRoot || process.cwd()
    , projectName = path.basename(projectRoot)

  resolveReadme(readme, function (err, fullPath) {
    if (err) return cb(err);
    log.info('docme', 'Updating API in "%s" with current jsdocs', readme);
    update(projectRoot, projectName, jsdocargs, fullPath, cb);
  });
}
function docme(readme, args, jsdocargs, cb) {
  args = args || {};
  jsdocargs = jsdocargs || [];

  log.level = args.loglevel || 'info';  
  
  var projectRoot = args.projectRoot || process.cwd()
    , projectName = path.basename(projectRoot)

  resolveReadme(readme, function (err, fullPath) {
    if (err) return cb(err);
    log.info('docme', 'Updating API in "%s" with current jsdocs', readme);
    update(projectRoot, projectName, jsdocargs, fullPath, cb);
  });
}
function docme ( readme , args , jsdocargs , cb ) { args = args || { } ; jsdocargs = jsdocargs || [ ] ; log . level = args . loglevel || 'info' ; var projectRoot = args . projectRoot || process . cwd ( ) , projectName = path . basename ( projectRoot ) resolveReadme ( readme , function ( err , fullPath ) { if ( err ) return cb ( err ) ; log . info ( 'docme' , 'Updating API in "%s" with current jsdocs' , readme ) ; update ( projectRoot , projectName , jsdocargs , fullPath , cb ) ; } ) ; }
Generates jsdocs for non-private members of the project in the current folder.
It then updates the given README with the githubified version of the generated API docs.

@name docme
@function
@param {String} readme path to readme in which the API docs should be updated
@param {Array.<String>} args consumed by docme
@param {String=} args.loglevel (info) level at which to log: silly|verbose|info|warn|error|silent
@param {Array.<String>} jsdocargs consumed by jsdoc
@param {Function(Error)} cb called back when docme finished updating the README
Generates jsdocs for non - private members of the project in the current folder . It then updates the given README with the githubified version of the generated API docs .