------------------------------------
+
-+path.filename(p)+::
++path.basename(p, ext)+::
Return the last portion of a path. Similar to the Unix +basename+ command. Example:
+
------------------------------------
-node> require("path").filename("/foo/bar/baz/asdf/quux")
+node> require("path").filename("/foo/bar/baz/asdf/quux.html")
+"quux.html"
+node> require("path").filename("/foo/bar/baz/asdf/quux.html", ".html")
"quux"
------------------------------------
+