code: function basename(p, ext) {
      var f = parse(p).base;
      if (ext && f.substr(-1 * ext.length) === ext) {
        f = f.substr(0, f.length - ext.length);
      }
      return f;
    }
docs: get the file name from [pathname]
  @param {String} p <pathname>
  @param {String} ext <.extname>
  @return {String} <file name>