MCPcopy Create free account
hub / github.com/Kong/httpsnippet / escapeForSingleQuotes

Function escapeForSingleQuotes

src/helpers/escape.ts:79–79  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

77 * If value is not a string, it will be stringified with .toString() first.
78 */
79export const escapeForSingleQuotes = (value: any) => escapeString(value, { delimiter: "'" });
80
81/**
82 * Make a string value safe to insert literally into a snippet within double quotes,

Callers 5

client.tsFile · 0.90
client.tsFile · 0.90
client.tsFile · 0.90
client.tsFile · 0.90
client.tsFile · 0.90

Calls 1

escapeStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…