0.0.8 • Published 2 years ago

advanced-console-log v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

advanced-console-log

A console log is show in block line width start and end, you see:

  1. data file URL and name

  1. Check data type

  1. Check type if data is array

  1. show data width console.dir method

Install

Install via npm

npm i -D advanced-console-log

Usage

const { isDevelopMode, logger } =  require("advanced-console-log.js");

isDevelopMode(true);

const foo = [{name:  'foo',age:  32, active:  true}]

logger('foo,'foo)

isDevelopMode === 'true'

--------------------- Start log ------------------------------
 
Type is: Array
Length is : 1
foo return: 
[ { name: 'foo', age: 32, active: true } ]
 
---------------------  End log  ------------------------------

isDevelopMode === false

Sorry we are in production mode..

License

MIT