A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/43e619480568493433af78208e2b3c48843185ef below:

dont show run script banners in silent · npm/cli@43e6194 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+7

-0

lines changed Original file line number Diff line number Diff line change

@@ -276,6 +276,13 @@ class Display {

276 276

return

277 277

}

278 278 279 +

// HACK: if it looks like the banner and we are silent do not print it.

280 +

// There's no other way to do this right now :(

281 +

// eslint-disable-next-line max-len

282 +

if (this.#silent && args.length === 1 && args[0].startsWith('\n> ') && args[0].endsWith('\n')) {

283 +

return

284 +

}

285 + 279 286

this.#writeOutput(level, meta, ...args)

280 287

})

281 288

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4