17 lines
322 B
JavaScript
17 lines
322 B
JavaScript
'use strict';
|
|
|
|
const util = require('util');
|
|
|
|
const { binPath } = require('addon-tools-raub').paths(__dirname);
|
|
const core = require(`${binPath}/addon`);
|
|
|
|
|
|
const { Example } = core;
|
|
|
|
Example.prototype[util.inspect.custom] = function() {
|
|
return `Example { listeners: [${this.eventNames()}] }`;
|
|
};
|
|
|
|
|
|
module.exports = core;
|