useragent-generator icon indicating copy to clipboard operation
useragent-generator copied to clipboard

Generate from a string

Open IonicaBizau opened this issue 7 years ago • 3 comments

It would be great to add a function like fromString which would generate a user-agent from a provided string, such as: IE or IE 11 or Google Chrome 60 etc.

IonicaBizau avatar Jun 07 '18 13:06 IonicaBizau

What would be the use-case of this?

pastelsky avatar Jul 23 '18 11:07 pastelsky

We are also hoping for a similar string-based us-generation. Please see this https://github.com/getferdi/ferdi/pull/1592#issuecomment-873561466 for some info.

Also, is it true that since this module doesn't have any commits - that it is outdated and cannot support newer versions of browsers?

vraravam avatar Jul 11 '21 04:07 vraravam

@vraravam Adding browserslist support is going to be a non-trivial effort — and I do not have the time to do so myself at the moment. However, I'd be willing to accept a well tested pull request from anyone who's interested in adding this functionality — as it seems like a useful thing.

pastelsky avatar Aug 09 '21 16:08 pastelsky