domain-interceptor

0.0.9 • Public • Published

Domain Interceptor Build Status

Turns domains into a relevant event emitters.

OBSERVABILITY OBSERVABILITY OBSERVABILITY!!! (in a Steve Balmer busted out sqweaky voice).

Install

$ npm install domain-interceptor

Use

var i = require('domain-interceptor');
 
i.on('created', function(d) {
  console.log('this domain was created somewhere:', d);
  
  d.on('added', function(ee) {
    console.log('someone added an event emitter to this domain!', ee);
  });
});

For now, works with bare bones event emitters and http client requests.

Licence

MIT

Dependents (1)

Package Sidebar

Install

npm i domain-interceptor

Weekly Downloads

4

Version

0.0.9

License

MIT

Last publish

Collaborators

  • pgte