a variadic version of `util.inherits`
npm install utildot* grab a super constructor
* apply it to some child constructors using a variadic version of util.inherits
* the last parameter given is the super constructor
* any number of constructors given sooner inherit from a prototype of the super constructor
instead of doing this:
``js
var util = require('util');
var EventEmitter = require('events').EventEmitter;
util.inherits(Ctor, EventEmitter);
util.inherits(AnotherCtor, EventEmitter);
function Ctor(){}
function AnotherCtor(){}
`
just do:
`js
var util = require('utildot')
util.inherits(Ctor, AnotherCtor, require('events').EventEmitter);
function Ctor(){}
function AnotherCtor(){}
//... inherit down to any number of constructors passed before the superCtor
`
`bash`
$ npm i utildot
`bash``
$ npm t