MCPcopy Create free account
hub / github.com/TanStack/ai / shellQuote

Function shellQuote

packages/ai-claude-code/src/adapters/projection.ts:37–39  ·  view source on GitHub ↗

POSIX single-quote escape for embedding a value in a shell command.

(value: string)

Source from the content-addressed store, hash-verified

35
36/** POSIX single-quote escape for embedding a value in a shell command. */
37function shellQuote(value: string): string {
38 return `'${value.replace(/'/g, `'\\''`)}'`
39}
40
41/** Last path segment of a `gitSkill` clone dir, used as the skills-dir name. */
42function basenameOf(path: string): string {

Callers 2

projectGitSkillsFunction · 0.70
projectPluginsFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected