(url)
| 5 | const { once } = require('node:events') |
| 6 | |
| 7 | const assertValidUrl = (url) => { |
| 8 | try { |
| 9 | if (!/^https?:$/.test(new URL(url).protocol)) { |
| 10 | throw new Error() |
| 11 | } |
| 12 | } catch { |
| 13 | throw new Error('Invalid URL: ' + url) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | const outputMsg = (json, title, url) => { |
| 18 | if (json) { |
no test coverage detected
searching dependent graphs…