UNPKG

@capgo/cli

Version:
9 lines (8 loc) 398 B
/** * Returns true only when `appId` is a safe reverse-domain package identifier * that can be embedded in a shell command string without risk of injection. * * Valid examples: com.example.app io.capgo.app_1 com.acme.my-app * Invalid examples: com.x; rm -rf ~ com.x$(cmd) nodots com-example foo_bar "" */ export declare function isSafeAppIdForCommand(appId: string): boolean;