replace-constructor
Replace/wrap a class constructor, while keeping the prototype, name and properties of the original class. Like extending a class, but suitable for use in decorators and such. Babel compatible. Adapted from autocreate - all credits to @pjeby.
example
npm i replace-constructor
const replace = { // .. } const Wrapped =
install
With npm do:
npm install replace-constructor