MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / shellQuote

Function shellQuote

scripts/profiler/helpers/shell.ts:2–4  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1/** Quote a string for safe interpolation into a bash command line. */
2export function shellQuote(value: string): string {
3 return `'${value.replaceAll("'", `'\\''`)}'`;
4}

Callers 5

runProfileFunction · 0.90
profileSystemFunction · 0.90
wrapWithPerfCpuFunction · 0.90
buildFlamegraphPipelineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected