dmtrKovalenko / dmtrKovalenko/odiff
Request: Accept buffers also (not only paths)
Open
- 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.