UNPKG

@suzakuteam/scraper-node

Version:

Sebuah Module Scraper yang dibuat oleh Sxyz dan SuzakuTeam untuk memudahkan penggunaan scraper di project ESM maupun CJS.

23 lines (19 loc) 524 B
const chalk = require("chalk"); const timeNow = () => chalk.gray(`[${new Date().toLocaleTimeString()}]`); const log = { message: (text) => { console.log( `${timeNow()} ${chalk.cyan.bold("INFO")}${chalk.white(text)}`, ); }, error: (text) => { console.error( `${timeNow()} ${chalk.red.bold("FATAL")}${chalk.red(text)}`, ); console.error( chalk.redBright("✖ Program terminated due to a critical error."), ); process.exit(1); }, }; module.exports = { log };