firest commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
function chalkFormat (str) {
|
||||
if (str) {
|
||||
str = str.replace(/`/g, '\\`')
|
||||
const chalk = require('chalk')
|
||||
return chalk(Object.assign([], { raw: [str] }))
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = chalkFormat
|
||||
Reference in New Issue
Block a user