(json, title, url)
| 15 | } |
| 16 | |
| 17 | const outputMsg = (json, title, url) => { |
| 18 | if (json) { |
| 19 | output.buffer({ title, url }) |
| 20 | } else { |
| 21 | // These urls are sometimes specifically login urls so we have to turn off redaction to standard output |
| 22 | output.standard(`${title}:\n${url}`, { [META]: true, redact: false }) |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // attempt to open URL in web-browser, print address otherwise: |
| 27 | const openUrl = async (npm, url, title, isFile) => { |
no test coverage detected
searching dependent graphs…