MCPcopy 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
210const unescape = w => w.charAt(0) === '\'' ? w.replace(/^'|'$/g, '')
211 : w.replace(/\\ /g, ' ')
212
213// Helper to get custom definitions from a command/subcommand
214const getCustomDefinitions = (cmd, subCmd) => {

Callers 1

execMethod · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected