How to use the caniuse-db/data.json.agents function in caniuse-db

To help you get started, we’ve selected a few caniuse-db 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 browserslist / browserslist / agents.js View on Github external
var agents = require('caniuse-db/data.json').agents;

Object.keys(agents).forEach(function (key) {
    var browser = agents[key];
    browser.versions = browser.versions.filter(Boolean);
});

module.exports = agents;