node-ipc.js 400 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const IPC = require('./services/IPC.js');
  3. class IPCModule extends IPC{
  4. constructor(){
  5. super();
  6. //include IPC to make extensible
  7. Object.defineProperty(
  8. this,
  9. 'IPC',
  10. {
  11. enumerable:true,
  12. writable:false,
  13. value:IPC
  14. }
  15. )
  16. }
  17. }
  18. module.exports=new IPCModule;