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

Function parseVariables

packages/cli/src/theme.ts:566–573  ·  view source on GitHub ↗
(variables?: string)

Source from the content-addressed store, hash-verified

564}
565
566function parseVariables(variables?: string): Record<string, string> {
567 if (!variables) return {}
568 return variables.split(',').reduce((vars, unparsed) => {
569 const [key, value] = unparsed.split('=')
570 vars[key] = value
571 return vars
572 }, {} as Record<string, string>)
573}
574
575function determineFilePath(fileName: string): string | undefined {
576 const extensions = ['.ts', '.js', '.mjs', '.cjs']

Callers 1

generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected