A console.log for browser.
To view documentation or get support, visit docs.
To view some examples for more understanding, visit examples:
small data: ex-small.html [source code]
large data: ex-large.html [source code]
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(){})
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(){})