MCPcopy Index your code
hub / github.com/nodejs/node / outputMsg

Function outputMsg

deps/npm/lib/utils/open-url.js:17–24  ·  view source on GitHub ↗
(json, title, url)

Source from the content-addressed store, hash-verified

15}
16
17const 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:
27const openUrl = async (npm, url, title, isFile) => {

Callers 2

openUrlFunction · 0.85
openUrlPromptFunction · 0.85

Calls 1

bufferMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…