MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / localExtensionExists

Function localExtensionExists

apps/desktop/src/main/raycast-integration.ts:71–78  ·  view source on GitHub ↗
(extensionPath: string)

Source from the content-addressed store, hash-verified

69}
70
71async function localExtensionExists(extensionPath: string): Promise<boolean> {
72 try {
73 const stat = await fsp.stat(path.join(extensionPath, 'package.json'))
74 return stat.isFile()
75 } catch {
76 return false
77 }
78}
79
80async function raycastAppInstalled(): Promise<boolean> {
81 if (process.platform !== 'darwin') return false

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected