Function readFileBufferSafe

  • Reads a file and returns the file's contents.

    Identical to

    Parameters

    • filepath: string

      The path to the file.

    Returns Promise<Buffer | undefined>

    See

    fs.readFile, except that:

    • it uses no encoding by default
    • if operation fails, returns undefined instead of throwing

Generated using TypeDoc