delivery-tracker icon indicating copy to clipboard operation
delivery-tracker copied to clipboard

Feature Request: Make library usable within browser

Open carstenschwede opened this issue 3 years ago • 1 comments

It would be useful to have this library available directly within the browser. Has this been considered already? Are there any methods that can't be replicated in the browser?

Based on a quick skim I would imagine that replacing request and require with corresponding fetch calls might be sufficient. (Other option would be to rollup all require calls for the courier inclusions in one chunk)

carstenschwede avatar Jun 02 '21 09:06 carstenschwede

I dug deeper and there are a couple of couriers that are being crawled with cheerio which probably can't be replicated in the browser because of likely CORS issues.

carstenschwede avatar Jun 02 '21 09:06 carstenschwede