path-extras

A drop-in replacement for the path module, Browserify aware

path-extras

A drop-in replacement for the path module. Provide more methods.

npm install path-extras

path.isAbsolute() is added in Node 0.11. This is a shim.

Test if path is ended with a slash.

Like dirname, but return the original path if it's ended with a slash.