Function cwdpath

  • Joins the given path segments to the current working directory path, and normalizes the resulting path.

    Parameters

    • Rest ...paths: string[]

      The path segments to join to the current working directory path.

    Returns string

    The resulting path.

    Remarks

    The function uses the path.join method from the Node.js path module, and the process.cwd method from the Node.js process module.

    Example

    console.log(cwdpath('src', 'index.ts'));
    //=> '{working_directory}/src/index.ts'

Generated using TypeDoc