dmtrKovalenko / dmtrKovalenko/odiff

Request: Accept buffers also (not only paths)

Open
#171 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Zig
Stars
3.2k
Forks
115
PR merge metrics
No merged PRs in 30d

Description

## Request
Do you folks plan to support passing buffers instead of filepath? So we could skip the filesystem I/O?

## Example (with Playwright)
```js
await page.goto(`${prev}${urlPath}`, { waitUntil: "load" });
const bufferA = await page.screenshot(); // returns Buffer, no disk write

await page.goto(`${prev}${urlPath}`, { waitUntil: "load" });
const bufferB = await page.screenshot(); // returns Buffer, no disk write

// Compare
await odiff.compare(bufferA, bufferB, diffPath);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.