UNPKG

node-pluginsmanager

Version:
21 lines (20 loc) 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // module function extractGithub(plugin) { let github = ""; if ("object" === typeof plugin) { if ("string" === typeof plugin.github) { github = plugin.github; } else if ("string" === typeof plugin.repository) { github = plugin.repository; } else if (plugin.repository && "string" === typeof plugin.repository.url) { github = plugin.repository.url; } } return github; } exports.default = extractGithub; ;