Export createGetUrl function with browser fetch version
Ethers Version
6.x
Search Terms
No response
Describe the Problem
Currently only createGetUrl from node http request version is exported from ethers.js and it is impossible to use fetch version of it from node.js
Would be great if you could export this as well, to avoid reimplementing the whole code like this https://github.com/tornadocontrib/tornado-scripts/blob/main/src/providers.ts#L129
Code Snippet
Contract ABI
Errors
Environment
No response
Environment (Other)
No response
You want the browser implementation of createGetUrl exported in node environments?
I have been planning to use the “modern” node exports for another feature, I could add this as well, something akin to import { createGetUrl } from "ethers/utils-browser";. Or possibly just "ethers/browser"?
@ricmoo Yes import { createGetUrl } from "ethers/utils-browser"; would sound ideal