UNPKG

@antoniosbarotsis/fake-db

Version:

[![NPM License](https://img.shields.io/npm/l/all-contributors.svg?style=flat)](https://github.com/AntoniosBarotsis/fakeDB/blob/master/LICENSE) [![NPM Version](https://img.shields.io/npm/v/@antoniosbarotsis/fake-db?style=flat)](https://www.npmjs.com/packa

17 lines (13 loc) 389 B
module.exports = { log, warning, error, mapped } function log(...str) { console.log("\033[32m[ LOG ] \033[0m %s", str) } function warning(...str) { console.log("\033[33m[ WARNING ]\033[0m %s", str) } function error(...str) { console.log("\033[31m[ ERROR ] \033[0m", str) } function mapped(str) { console.log("\033[36m[ MAPPED ] \033[0m %s", str) }