w-consolelog

A console.log for browser.


Keywords
package, tool, json, view, tree, console, log, browser
License
MIT
Install
npm install w-consolelog@1.0.14

Documentation

w-consolelog

A console.log for browser.

language npm version gzip file size npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

small data: ex-small.html [source code]

large data: ex-large.html [source code]

Installation

Using npm(ES6 module):

Note: w-consolelog is not dependent on any package.

npm i w-consolelog

By import:

import log from 'w-consolelog'

let data={a1:123,a2:123.456,s1:'123',s2:'xyz',b1:true,f1:function(){},c1:[1.2,3.4,'5.6',false,function(){}],d1:{cid:'WK2WHS',name:'peter',unique:false,fun:function(){}}}

log(123,'abc123',true,false,function(){})
log(123,'abc123',data,true,false,function(){})

In a browser(UMD module):

Add script for w-consolelog.

<script src="https://cdn.jsdelivr.net/npm/w-consolelog@1.0.14/dist/w-consolelog.umd.js"></script>

Directly use:

let log=window['w-consolelog']

let data={a1:123,a2:123.456,s1:'123',s2:'xyz',b1:true,f1:function(){},c1:[1.2,3.4,'5.6',false,function(){}],d1:{cid:'WK2WHS',name:'peter',unique:false,fun:function(){}}}

log(123,'abc123',true,false,function(){})
log(123,'abc123',data,true,false,function(){})