A-New-Day-001's picture
Upload 1591 files
be5030f
raw
history blame contribute delete
272 Bytes
const chalk = require('chalk')
function format (str) {
return chalk(Object.assign([], { raw: [ str ] }))
}
function chalkFormat (str) {
if (str) {
str = str.replace(/`/g, '\\`')
return format(str)
} else {
return ''
}
}
module.exports = chalkFormat