UNPKG

wasmexplorer-wasm-compiler

Version:

Compile `.c/++` files to `.wasm` format using [WasmExplorer](https://mbebenita.github.io/WasmExplorer/) service by [@mbebenita](https://github.com/mbebenita).

47 lines (40 loc) 733 B
/** * @module utils */ /** * @param {string} msg - error message to pretty print */ function error(msg) { console.error('\x1b[01;31m%s\x1b[0m', msg); } /** * @param {string} msg - info message to pretty print */ function info(msg) { console.log('\x1b[01;34m%s\x1b[0m', msg); } /** * @param {string} msg - log message to print */ function log(msg) { console.log(msg); } /** * @param {string} msg - success message to pretty print */ function success(msg) { console.log('\x1b[01;32m%s\x1b[0m', msg); } /** * @param {string} msg - warning message to pretty print */ function warning(msg) { console.warn('\x1b[01;33m%s\x1b[0m', msg); } module.exports = { error, info, log, success, warning, };