/* * Creates the HTML for the institution in the institution table on /for/universities */ const name = process.argv[2] const href = process.argv[3] const image = process.argv[4] function create() { if (!name) { return console.log('Error: Institution name is required') } const eventLabel = name.replace(/ /g, '-').replace(/\(|\)/g, '') if (!href) { return console.log('Error: Institution portal href is required') } let result = `
` result += `\n
` if (image) { result += `\n ` } result += `\n
` result += `\n

${name}

` result += `\n
` result += `\n
VIEW
` result += '\n
' console.log(result) } create()