whir-clog

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i whir-clog

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • dazld