@gameroom/cli
Version:
A command line tool for Gameroom
18 lines (16 loc) • 341 B
JavaScript
let cosmetic = require('cosmetic')
module.exports = (status) => {
switch(status) {
case 2:
case 'corrected':
return cosmetic.yellow('corrected')
case 3:
case 'approved':
return cosmetic.green('approved')
case 4:
case 'declined':
return cosmetic.red('declined')
default:
return ''
}
}