A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/npm/cli/commit/8794fd9161c29fea3f51ae8581f54172011d4069 below:

support pipeline input with Invoke-Expression (#8297) · npm/cli@8794fd9 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+6

-2

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+6

-2

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

@@ -37,7 +37,9 @@ if ($MyInvocation.Line) { # used "-Command" argument

37 37 38 38

# Support pipeline input

39 39

if ($MyInvocation.ExpectingInput) {

40 -

$input | Invoke-Expression "& `"$NODE_EXE`" `"$NPM_CLI_JS`" $NPM_ARGS"

40 +

$input = (@($input) -join "`n").Replace("``", "````")

41 + 42 +

Invoke-Expression "Write-Output `"$input`" | & `"$NODE_EXE`" `"$NPM_CLI_JS`" $NPM_ARGS"

41 43

} else {

42 44

Invoke-Expression "& `"$NODE_EXE`" `"$NPM_CLI_JS`" $NPM_ARGS"

43 45

}

Original file line number Diff line number Diff line change

@@ -37,7 +37,9 @@ if ($MyInvocation.Line) { # used "-Command" argument

37 37 38 38

# Support pipeline input

39 39

if ($MyInvocation.ExpectingInput) {

40 -

$input | Invoke-Expression "& `"$NODE_EXE`" `"$NPX_CLI_JS`" $NPX_ARGS"

40 +

$input = (@($input) -join "`n").Replace("``", "````")

41 + 42 +

Invoke-Expression "Write-Output `"$input`" | & `"$NODE_EXE`" `"$NPX_CLI_JS`" $NPX_ARGS"

41 43

} else {

42 44

Invoke-Expression "& `"$NODE_EXE`" `"$NPX_CLI_JS`" $NPX_ARGS"

43 45

}

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