UNPKG

manyfest

Version:

JSON Object Manifest for Data Description and Parsing

18 lines (13 loc) 380 B
/** * @author <steven@velozo.com> */ /** * Manyfest simple logging shim (for browser and dependency-free running) */ const logToConsole = (pLogLine, pLogObject) => { let tmpLogLine = (typeof(pLogLine) === 'string') ? pLogLine : ''; console.log(`[Manyfest] ${tmpLogLine}`); if (pLogObject) console.log(JSON.stringify(pLogObject)); }; module.exports = logToConsole;