joshuatonga / o1

From object to one liner & minimalistic log

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

o1

Generated with nod NPM version Build Status Coverage Status

From object to one liner & minimalistic log.

Install

$ npm install --save o1

Usage

import log from "o1";

// doge: good, cat: cute
log({ doge: "good", cat: "cute" });

// doge: good - cat: cute
log({ doge: "good", cat: "cute" }, { 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 log
  • config (optional, default {})

Returns any Converted one line log

License

MIT © Joshua Tonga

About

From object to one liner & minimalistic log

License:MIT License


Languages

Language:JavaScript 100.0%