1.0.8 • Published 7 years ago

@litenkod/frontis v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

frontis

npm (scoped)

Small fancy console.log to show typeof and element values, console.log('typeof:' + element);

Install

$ npm install @litenkod/frontis

Usage

Require

const frontis = require("@litenkod/frontis");
frontis.console2(xxx);

//or
const {console2} = require("@litenkod/frontis");
console2(xxx);

How to use

//console.log with finess
console2(string, array, object, boolean, undefined);

var test1 = 'test';
var test2 = ['test1', 'test2', 'test3'];
var test3 = {test1: '1 test', test2: false};
var test4 = true;

console2(test1);
// string
// test

console2(test2);
// [array]
// 0: test1
// 1: test2
// 2: test3

console2(test3);
// {object}
// key: test1, val: 1 test
// key: test2, val: false

console2(test4);
// boolean
// true

//ERROR
console2();
//=> console2 wants something to log!
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago