w-consolelog
v1.0.14
Published
A console.log for browser.
Downloads
15
Maintainers
Readme
w-consolelog
A console.log for browser.
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/[email protected]/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(){})