mirror of
https://github.com/thangisme/notes.git
synced 2025-10-19 09:44:28 -04:00
Initial commit
This commit is contained in:
13
node_modules/doiuse/lib/util.js
generated
vendored
Normal file
13
node_modules/doiuse/lib/util.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var agents = require('caniuse-db/data').agents;
|
||||
|
||||
module.exports = {
|
||||
formatBrowserName: function formatBrowserName(browserKey, versions) {
|
||||
var browserName = (agents[browserKey] || {}).browser;
|
||||
if (!versions) {
|
||||
return browserName;
|
||||
}
|
||||
return browserName + ' (' + versions.join(',') + ')';
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user