UNPKG

reest

Version:

A library inspired by NestJS's elegance, specifically designed for efficient serverless API development on AWS Lambda. It streamlines the creation of microservices with automated Swagger documentation and enhanced decorator-based middleware support, makin

11 lines (8 loc) 274 B
import chalk from "chalk"; import moment from "moment"; type LogType = "INFO" | "ERROR" | "WARN" | "SUCCESS"; export const Log = (message: string, type?: LogType): void => { console.log( chalk.white(`[reest][LOG][${moment().format("hh:mm:ss")}] ${message}`) ); };