Index | Method | Description |
1 | path.normalize(p) | Well this is used to normalize a string path and should be taking care of '..' and '.' parts. |
2 | path.join([path1][, path2][, ...]) | Well we used to join all arguments together and normalize the resulting path. |
3 | path.resolve([from ...], to) | Weel we used this method to resolve an absolute path. |
4 | path.isabsolute(path) | Well we use this to determines whether path is an absolute path. an absolute path will always resolve to the same location, regardless of the working directory. |
5 | path.relative(from, to) | Well we used this to solve the relative path from "from" to "to". |
6 | path.dirname(p) | Well this is used to return the directory name of a path. It is similar to the unix dirname command. |
7 | path.basename(p[, ext]) | Well this is used to returns the last portion of a path. It is similar to the Unix basename command. |
8 | path.extname(p) | Well this will returns the extension of the path, from the last '.' to end of string in the last portion of the path. if there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string. |
9 | path.parse(pathstring) | Well this will returns an object from a path string. |
10 | path.format(pathobject) | Well this will returns a path string from an object, the opposite of path.parse above.
|