Wondering what’s next for npm?Check out our public roadmap! »

w-consolelog

1.0.7 • Public • Published

w-consolelog

A console.log for browser.

language npm version Build Status license gzip file size 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 does't depend 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.7/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(){})

Install

npm i w-consolelog

DownloadsWeekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

1.44 MB

Total Files

55

Last publish

Collaborators

  • avatar