@nafr/echo-ui
Version:
A UI library born for WAA
14 lines (13 loc) • 468 B
JavaScript
import { version } from '../../package.json';
const PREFIX = 'Echo UI:';
export const logger = {
info: (...args) => console.log(PREFIX, ...args),
warn: (...args) => console.warn(PREFIX, ...args),
error: (...args) => console.error(PREFIX, ...args),
};
export const logBrand = () => {
const content = `%c > Echo UI v${version} prod by leyoonafr < `;
window.onload = () => {
console.log(content, 'background: #ffbe3b; color: #000');
};
};