Closed karlhorky closed 3 years ago
Happy to accept PRs for this! We currently rely on Buffer.isBuffer
to see if something is a buffer; if you have a more generic approach, I'm happy to take it :)
Ah, I guess this feature doesn't exist currently in Cheerio: https://github.com/cheeriojs/cheerio/pull/1845#issuecomment-833676354
Closing this, as the change seems pretty involved.
Hi @fb55 ! In
1.0.0-rc.9
I noticed that the types forcheerio.load
only acceptstring | Node | Node[] | Buffer
.I'm trying to pass in a
vfile.VFileContents
(viaremark.process
), which isstring | Uint8Array
.Would it be possible to also accept
Uint8Array
, the base type forBuffer
?