o1
From object to one liner & minimalistic log
Install
$ npm install --save o1
Usage
import log from "o1";
// doge: good, cat: slightly bad
log({ doge: "good", cat: "slightly bad" });
// doge: good - cat: slightly bad
log({ doge: "good", cat: "slightly bad" }, { separator: ' - ' });
API
Table of Contents
log
Will output a one line string of the keys and values of the passed object
in the format of key: value, key:value...
.
Parameters
obj
Object to convert to a one line logconfig
(optional, default{}
)
Returns any Converted one line log
License
MIT © Joshua Tonga