Skip to content

Simple wrapper around console.log which prepends a duration at the start.

License

Notifications You must be signed in to change notification settings

whir-tools/clog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clog

Simple wrapper around console.log which prepends a duration at the start.

var clog = require('whir-clog');

clog('hi'); // 0.022s - hi

// can bind it just like console log too

var boundClog = clog.bind(null, 'other');
boundClog('thing'); // 0.032s - other thing

##todo

  • adapt timestring depending on how long it has been running

About

Simple wrapper around console.log which prepends a duration at the start.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published