MCPcopy
hub / github.com/mitmproxy/mitmproxy / copyViewContentDataToClipboard

Function copyViewContentDataToClipboard

web/src/js/utils.ts:200–204  ·  view source on GitHub ↗
(
    contentViewData: ContentViewData | undefined,
)

Source from the content-addressed store, hash-verified

198}
199
200export async function copyViewContentDataToClipboard(
201 contentViewData: ContentViewData | undefined,
202) {
203 await copyToClipboard(Promise.resolve(contentViewData?.text || ""));
204}
205
206export function rpartition(str: string, sep: string): [string, string] {
207 const lastIndex = str.lastIndexOf(sep);

Callers 1

handleClickCopyButtonFunction · 0.90

Calls 2

copyToClipboardFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…