AdrieanKhisbe/bundle-phobia-cli

Can you add a X header for requests coming through the CLI ?

pastelsky opened this issue · 4 comments

Hi Adriean,
Thanks for making this CLI app.

I've been getting some suspicious traffic lately on bundlephobia.com, and finding it hard to track down the origin of these requests. The number of requests far exceed the number of users reported by Google Analytics. Do you think you could add a X-<something> header so that I can track requests originating from this CLI ?

Of course @pastelsky. Will due so.
Not the CLI is used yet, but yes I made several batch request mainly to lodash.
I will add a X-header, do you have any preference X- standard header we could use?

@pastelsky I went for customising the user agent:
28023eb

I made some query with it.
Tell me if iit's good for your and I'll make a patch release :)

Et voilà!
just release the 0.5.1 bee1556. available on npm.

If you have other suggestions or request, please do ask :)