caniuse-support
Query the caniuse offline database for feature support.
Includes browser detection using bowser.
Usage
; // Get feature support of specific browser.; // { level: "partial", needPrefix: true, notes: [1] } // Get feature support of specific browser using an user agent string.const userAgent = "Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0";; // { level: "full", needPrefix: false, notes: [] } // Get matching caniuse version index.; // "26"
For a list of queryable features see here.
Playground
Checkout this code pen.