delivery-tracker
delivery-tracker copied to clipboard
Feature Request: Make library usable within browser
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)
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.