UNPKG

eths-git

Version:

**eths-git-remote** is a decentralized Git solution designed to manage repositories on-chain. It provides two main components:

20 lines (19 loc) 529 B
import chalk from "chalk"; function getTimestamp() { return new Date().toLocaleTimeString(); } // 🧰 Utility log helpers export const logger = { normal(msg) { console.log(`📘 [${getTimestamp()}] ${msg}`); }, info(msg) { console.log(chalk.blueBright(`📘 [${getTimestamp()}] ${msg}`)); }, success(msg) { console.log(chalk.greenBright(`✅ [${getTimestamp()}] ${msg}`)); }, error(msg) { console.error(chalk.redBright(`❌ [${getTimestamp()}] ${msg}`)); } };