Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ unescape
Function
unescape
lib/commands/completion.js:210–211 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
208
}
209
210
const
unescape = w => w.charAt(0) ===
'\'
' ? w.replace(/^'
|
'$/g, '
')
211
: w.replace(/\\ /g,
' '
)
212
213
// Helper to get custom definitions from a command/subcommand
214
const
getCustomDefinitions = (cmd, subCmd) => {
Callers
1
exec
Method · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected