rasengan
Version:
The modern React Framework
10 lines (9 loc) • 506 B
JavaScript
import chalk from 'chalk';
export const logRedirection = (source, destination) => {
const time = new Date().toLocaleTimeString();
console.log(`${chalk.grey(time)} ${chalk.blue('[Rasengan]')} ${chalk.green('REDIRECT')}: ${chalk.grey(source)} ${chalk.green('->')} ${chalk.grey(destination)}`);
};
export const logGetRequest = (url) => {
const time = new Date().toLocaleTimeString();
console.log(`${chalk.grey(time)} ${chalk.blue('[Rasengan]')} ${chalk.green('GET')}: ${chalk.grey(url)}`);
};