code: function (uri) {
  	var lastSlash = uri.lastIndexOf("/");
  	var sub;
  	if (lastSlash == -1) {
  		sub = uri;
  	} else {
  		sub = uri.substr(lastSlash + 1);
  	}
  	sub = sub.toLowerCase();
  	var parsed = parseModuleName(sub);
  	var path = removeFiletype(parsed.modulePath || sub);
  	var matches = path.match(/^[\w-\s\.]+/);
  	return matches ? matches[0] : "";
  }
docs: get the last part of a module path
  if a npm package is provided
  e.g.
  main/bar/foo => foo
  packagename@1.0.0#foo/bar => bar
  
  @param uri
  @returns {string}