require('path'), but with a constructor based API.
Since once the path object is created, the string value doesn't need to be reparsed, it's faster than
require('path') over multiple invokations.
npm install opath
var Paht = ;var path = 'a/b';path === 'a';
Create a new path object.
These methods work like the ones in
require('path'). Methods that are supposed to return a path will return a new path object (e.g.
Set extname to
Return the string value of the path.