project-manager-ipc
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

ipc for project-manager

send message to project-manager

Install

npm install project-manager-ipc --save-dev

Usage

import ProjectManagerIpc from "project-manager-ipc";

const ipc = new ProjectManagerIpc({
  idKey: string // optional default: 'PROJECT_MANAGER_IPC_CHILD'
  serverKey: string // optional default: 'PROJECT_MANAGER_IPC_SERVER'
  log: (msg: string) {} // optional
})
ipc.connect({
  success: () => {

  },
  fail: (err: string) => {

  }
})
ipc.setLogger((msg: string) => {
  console.log(msg)
})
ipc.emitDist('/path/to/dist')
ipc.emitDist('/path/to/dist', { version: string, name: string })
ipc.emitUrl('0.0.0.0', 9000)
ipc.emitError('error message')
ipc.disconnect()
ipc.destroy()

Changelog

2024-01-16 v1.0.6 add dist version and name

Readme

Keywords

none

Package Sidebar

Install

npm i project-manager-ipc

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

4.45 kB

Total Files

4

Last publish

Collaborators

  • npmyoog