location context to search and read file content

Hierarchy

  • LocationContext

Constructors

Methods

  • find which input paths is existed

    Returns

    first existing path

    Throws

    input not found if none of input paths exist

    Parameters

    • Rest ...paths: string[]

      full-path

    Returns Promise<string>

  • find which input paths is existed

    Returns

    first existing path

    Throws

    input not found if none of input paths exist

    Parameters

    • Rest ...paths: string[]

      full-path

    Returns string

  • check whether input args is existing

    Returns

    true if path file/directory is exist

    Parameters

    • Rest ...args: string[]

      paths to join

    Returns Promise<boolean>

  • check whether input args is existing

    Returns

    true if path file/directory is exist

    Parameters

    • Rest ...args: string[]

      array path that will join to single path

    Returns boolean

  • read first existing input file content

    Returns

    first file content

    Throws

    input not found if none of input paths exist

    Parameters

    • Rest ...paths: string[]

      list of full-path

    Returns Promise<string>

  • read first existing input file content

    Returns

    first file content

    Throws

    input not found if none of input paths exist

    Parameters

    • Rest ...paths: string[]

      list of full-path

    Returns Promise<string>

Generated using TypeDoc