Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

o1

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

o1

From object to one liner & minimalistic log

  • 0.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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: 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

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

Keywords

FAQs

Package last updated on 08 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc