path.join()
Joins and normalizes path components.
Signature
path.join(first, ...rest)
Parameters
One or more text components in host style.
Returns
String.
Behavior
Skips empty components. A rooted component resets accumulated text.
Errors
Malformed path or nontext component.
Example
use path
assert(path.name(path.join('reports', 'today.txt')) == 'today.txt')