Use [`path.basename()`](http://nodejs.org/api/path.html#path_path_basename_p_ext) instead.