supercat666's picture
add igv
78c921d
raw
history blame
No virus
225 Bytes
function chalkFormat (str) {
if (str) {
str = str.replace(/`/g, '\\`')
const chalk = require('chalk')
return chalk(Object.assign([], { raw: [str] }))
} else {
return ''
}
}
module.exports = chalkFormat