NOTE: THIS IS AN ESM PACKAGE, USING IT IN A COMMONJS CONTEXT IS NOT RECOMMENDED.
β οΈ
This is a (NON-OFFICIAL) wrapper over Illuminarty via Playwright.
import { scan } from "reminate";
The API is pretty simple, it's literally just one method, if 0x907A70
adds anything new I'll try to include it as soon as possible.
img
- An imageBuffer
.1options
- OptionsObject
.options.mime
- MIME type of the file, by default uses magic numbers, you can override the behaviour with this.2options.v
- Verbosity option, for debugging purposes.
Example code:
import { scan } from "reminate";
const img = Buffer.from( "iVBORw0KGgoAAAANSUhEUgAAAAYAAAAJCAYAAAARml2dAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACnSURBVAjXPcyxbcJAAADAi+UBvsBy8wUuPAFCKAXKAnRuGSAjZJAUGSCtq3gDKoQ8AZHexTcWRGIDKJByA9zL/e3n/qk3NqxiNB+yvZXiDzMi5pxlyQ0lk7qJ1t0GDH0vJIorxpSFqhKqSk5AqVmSRt/D4F+zVCw+WnEbqWsQt9HivVX+ns9kdru1gNvl4oryNE0OKctfz6rrNkKgND/blDI4HnltWw9VhjdFJre8DQAAAABJRU5ErkJggg==",
"base64"
);
console.log(await scan(img));
- Proxying to circumvent rate-limit.
- Replacing Playwright with form emulation.