@kissflow/form-field-scripts
Version:
Scripts to serve, build, lint, test, etc. a Kissflow's custom form field project.
36 lines (32 loc) • 837 B
JavaScript
const { default: boxen } = await import('boxen')
const logBoxenError = ({ title, description }) => {
console.log(
boxen(description, {
title: title,
margin: {
bottom: 1,
},
fullscreen: false,
padding: 1,
borderStyle: 'double',
backgroundColor: '#525050',
borderColor: 'red',
})
)
}
const logBoxenWarning = ({ title, description }) => {
console.log(
boxen(description, {
title: title,
margin: {
bottom: 1,
},
fullscreen: false,
padding: 1,
borderStyle: 'double',
backgroundColor: '#525050',
borderColor: 'yellow',
})
)
}
export { logBoxenError, logBoxenWarning }