MCPcopy Create free account
hub / github.com/Kong/insomnia / formatSourceLabel

Function formatSourceLabel

packages/insomnia/src/common/render.ts:53–53  ·  view source on GitHub ↗
(type: string, name?: string)

Source from the content-addressed store, hash-verified

51// Source labels read as `<environment type> : <name>`; the type alone stands in
52// when an environment has no name.
53const formatSourceLabel = (type: string, name?: string) => (name ? `${type} : ${name}` : type);
54
55// Function that gets Keys and stores their Source location
56function getKeySource(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected