swc/bundler/tests/.cache/deno/09236d67cd7c89114ef7fae5927846001fdb3ee1.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

33 lines
661 B
TypeScript

// Loaded from https://deno.land/x/colorlog@v1.0/mod.ts
const reset: String = "\x1b[0m";
const red: String = "\x1b[31m";
const green: String = "\x1b[32m";
const yellow: String = "\x1b[33m";
function error(val: any) {
return (red + val + reset);
}
function success(val: any) {
return (green + val + reset);
}
function warning(val: any) {
return (yellow + val + reset);
}
function errorLog(val: any) {
console.log(red + val + reset);
}
function successLog(val: any) {
console.log(green + val + reset);
}
function warningLog(val: any) {
console.log(yellow + val + reset);
}
export { error, success, warning, errorLog, successLog, warningLog };