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

Function guessLang

packages/cli/src/exportInput.ts:244–247  ·  view source on GitHub ↗

* Guess the language the user is leveraging on their project.

()

Source from the content-addressed store, hash-verified

242 * Guess the language the user is leveraging on their project.
243 */
244function guessLang() {
245 const tsconfig = resolve(process.cwd(), 'tsconfig.json')
246 return existsSync(tsconfig) ? 'ts' : 'js'
247}

Callers 2

requireLangFunction · 0.85
requireInputCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected