Function readFileBufferSafeSync

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

    Identical to

    Parameters

    • filepath: string

      The path to the file.

    Returns Buffer | undefined

    See

    fs.readFileSync, except that:

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

Generated using TypeDoc