@capgo/cli
Version:
A CLI to upload to capgo servers
9 lines (8 loc) • 398 B
TypeScript
/**
* 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;