1.1.3 • Published 9 years ago

hookit v1.1.3

Weekly downloads
1,039
License
MIT
Repository
github
Last release
9 years ago

hook

Shim all core IO calls and allow callback shimming via wrap function.

###Installation

$ npm install hookit

###Usage:

hookit(function generateShim(callback, fnName) {
  return function() {
    try {
      callback.apply(this, arguments);
    } finally {
      console.log('bummer.')
    }
  }
})

process.nextTick(function() {
  throw new Error('here') // Will log "bummer" before we crash on error
})
1.1.3

9 years ago

0.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.2

9 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

12 years ago

0.0.2

12 years ago