evallog

1.0.1 • Public • Published

node-evallog

MIT License Build Status

NPM status

How to install?

npm install -g evallog

usage

This library evaluates passed arguments and logs them.

using default logger (console.log)

const x = {
 aVeryLongPropertyName: true,
 anotherVeryLongPropertyName: false,
};

require('evallog')('x.aVeryLongPropertyName', 'x.anotherVeryLongPropertyName', 'x.aVeryLongPropertyName && x.anotherVeryLongPropertyName');

Output:

using custom logger

const x = {
 aVeryLongPropertyName: true,
 anotherVeryLongPropertyName: false,
};

function myLogger() {
}

require('evallog')(myLogger, 'x.aVeryLongPropertyName', 'x.anotherVeryLongPropertyName', 'x.aVeryLongPropertyName && x.anotherVeryLongPropertyName');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i evallog

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • oprogramador