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

Function formatSourceLabel

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected