pretty-console-colors
Version:
🌈 Show your console messages much more visible and intuitive. The terminal much more friendly.
17 lines (13 loc) • 370 B
JavaScript
// Include axios dependences
import axios from 'axios';
// Import color Console Libary
import '../src/index.js';
// Set logs type
const typeLogs = ['log', 'info', 'warn', 'error'];
(() => {
axios('http://whatthecommit.com/index.txt').then((result) => {
typeLogs.forEach((x) => console[x](result.data));
}).catch((err) => {
console.error(err);
});
})();