Tuesday 19 February 2019

Looking for package: given a user agent string and a browser feature, return true if that browser supports that feature

Hi /r/node,Not sure if this is the best place to ask, but I'm looking for a package that basically does this:const supports = require('the-package-i-need'); const userAgent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0'; supports('fetch', userAgent); // Returns true Where fetch is an ID used at caniuse.com.Anyone know of such a package? (Or a better place to ask.)

Submitted February 19, 2019 at 02:29PM by vinnl

No comments:

Post a Comment