MCPcopy Create free account
hub / github.com/formkit/formkit / extractChecksum

Function extractChecksum

packages/cli/src/themeNormalize.ts:33–39  ·  view source on GitHub ↗
(theme: string)

Source from the content-addressed store, hash-verified

31}
32
33function extractChecksum(theme: string): string {
34 const checksumStart = theme.indexOf('@checksum -')
35 if (checksumStart === -1) {
36 throw new Error('Unable to find checksum in theme file.')
37 }
38 return theme.substring(checksumStart + 12, theme.indexOf('\n', checksumStart))
39}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected