bs-node icon indicating copy to clipboard operation
bs-node copied to clipboard

Process events handling API

Open sazarkin opened this issue 7 years ago • 0 comments

Can we add a bindings for process.on() ? https://nodejs.org/api/process.html

Something like this:

[@bs.send.pipe: Node.Process.t]
external on :
  (
  [@bs.string]
  [
    | `unhandledRejection(string => unit)
    | `SIGINT(unit => unit)
    | `SIGTERM(unit => unit)
  ]
  ) =>
  Node.Process.t =
  "";

sazarkin avatar Nov 16 '18 13:11 sazarkin