• Join two or more sections of file path together, inserting a delimiter if needed.

    Parameters

    • Rest...sections: string[]

      Sections of the path to join.

    Returns string

    The joined file path.

    const path = pc.path.join('foo', 'bar');
    console.log(path); // Prints 'foo/bar'
    const path = pc.path.join('alpha', 'beta', 'gamma');
    console.log(path); // Prints 'alpha/beta/gamma'