How to use the @financial-times/polyfill-useragent-normaliser/data.json.baselineVersions function in @financial-times/polyfill-useragent-normaliser

To help you get started, we’ve selected a few @financial-times/polyfill-useragent-normaliser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Financial-Times / polyfill-service / src / data / supportedBrowsers.js View on Github external
"use strict";

module.exports = {
	supportedBrowsers: Object.entries(require("@financial-times/polyfill-useragent-normaliser/data.json").baselineVersions).map(([browser, version]) => {
		switch (browser) {
			case "ie": {
				browser = "Internet Explorer";
			case "ie_mob": {
				browser = "Internet Explorer Mobile";
			case "chrome": {
				browser = "Chrome";
			case "safari": {
				browser = "Safari";


The user-agent normalisation logic behind polyfill-library and

Latest version published 2 years ago

Package Health Score

47 / 100
Full package analysis

Similar packages