Spaces:
Sleeping
Sleeping
File size: 225 Bytes
78c921d |
1 2 3 4 5 6 7 8 9 10 11 12 |
function chalkFormat (str) {
if (str) {
str = str.replace(/`/g, '\\`')
const chalk = require('chalk')
return chalk(Object.assign([], { raw: [str] }))
} else {
return ''
}
}
module.exports = chalkFormat
|