MCPcopy Create free account
hub / github.com/TanStack/cli / getStarterTelemetryProperties

Function getStarterTelemetryProperties

packages/cli/src/cli.ts:110–131  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

108}
109
110function getStarterTelemetryProperties(value?: string) {
111 if (!value) {
112 return {}
113 }
114
115 if (isRemoteUrl(value)) {
116 return {
117 starter_kind: 'remote_url',
118 }
119 }
120
121 if (isLocalPath(value)) {
122 return {
123 starter_kind: 'local_path',
124 }
125 }
126
127 return {
128 starter_id: sanitizeId(value),
129 starter_kind: 'built_in',
130 }
131}
132
133function getLengthBucket(value: string) {
134 const length = value.trim().length

Calls 3

isRemoteUrlFunction · 0.85
isLocalPathFunction · 0.85
sanitizeIdFunction · 0.85

Tested by

no test coverage detected