UNPKG

herokutools

Version:

Heroku CLI wrapper - helpful commands you use often - made easier!

18 lines (16 loc) 369 B
/** * * Verify if the app name is provided * @param app * @returns The app name */ const verifyApp = (app?: string | null): string | null => { if (!app) { app = process.env.HEROKU_TOOL_APP_1 } if (!app || app === "" || app === undefined || app === null) { console.log("No app name found") return null } return app } export default verifyApp