1.0.7 • Published 6 years ago

@guseyn/cutie-process v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

cutie-process

NPM Version Build Status codecov

Cutie extension for process module in Node. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/process

Run test

npm test

Run build

npm run build

Usage

const {
  // Needed async objects here from the table below
} = require('@cuties/process');

For more information about parameters in the async objects visit docs of Node for process module.

Async ObjectAsync/sync callParameters(default value/description)Representation result
Archprocess.archprocessstring
Argvprocess.argvprocessstring[]
Argv0process.argv0processstring
Channelprocess.channelprocessobject\|undefined
Chdirprocess.chdirprocess, dirstring
Configprocess.configprocessobject
CpuUsageprocess.cpuUsageprocess, previousValueobject
Cwdprocess.cwdprocessstring
DebugPortprocess.debugPortprocessnumber
DisconnectedProcessprocess.disconnectprocessprocess
Egidprocess.getegidprocessnumber
Envprocess.envprocessobject
Euidprocess.geteuidprocessnumber
ExecArgvprocess.execArgvprocessobject
ExecPathprocess.execPathprocessstring
ExitCodeprocess.exitCodeprocessnumber
ExitedProcessprocess.exitprocess, codeprocess
FoundProcessOnPortfind(from find-process)portfirst found process or {} if no process on the specified port
Gidprocess.getgidprocessnumber
Hrtimeprocess.hrtimeprocess, timenumber[]
IsConnectedprocess.connectedprocessboolean
KilledProcessprocess.killpid, signalprocess(as pid)
MainModuleprocess.mainModuleprocessmodule
MemoryUsageprocess.memoryUsageprocessobject
NextTickprocess.nextTickprocess, callback, ...argsprocess
NoDeprecationprocess.noDeprecationprocessboolean
Pidprocess.pidprocessnumber
Platformprocess.platformprocessstring
ProcessWithBeforeExitEventprocess.on('beforeExit', event)process, event(Event with definedBody(exitCode))process
ProcessWithDisconnectEventprocess.on('disconnect', event)process, event(Event with definedBody())process
ProcessWithEmitedWarningprocess.emitWarningwarning, optionsprocess
ProcessWithExitEventprocess.on('exit', event)process, event(Event with definedBody(code))process
ProcessWithMessageEventprocess.on('message', event)process, event(Event with definedBody(message, sendHandle))process
ProcessWithRejectionHandledEventprocess.on('rejectionHandled', event)process, event(Event with definedBody(p), p - promise)process
ProcessWithSignalEventprocess.on(signal, event)process, signal, event(Event with definedBody())process
ProcessWithUncaughtExceptionEventprocess.on('uncaughtException', event)process, event(Event with definedBody(error))process
ProcessWithUnhandledRejectionEventprocess.on('unhandledRejection', event)process, event(Event with definedBody(reason, p))process
ProcessWithWarningEventprocess.on('warning', event)process, event(Event with definedBody(warning))process
Releaseprocess.releaseprocessobject
SentMessageprocess.sendprocess, message, sendHandle, options, callbackmessage
StdErrprocess.stderrprocessstream
StdInprocess.stdinprocessstream
StdOutprocess.stdoutprocessstream
ThrowDeprecationprocess.throwDeprecationprocessboolean
Titleprocess.titleprocessstring
TraceDeprecationprocess.traceDeprecationprocessboolean
Uidprocess.getuidprocessnumber
Umaskprocess.umaskprocess, maskprocess
Uptimeprocess.uptimeprocessnumber
Versionprocess.versionprocessstring
Versionsprocess.versionsprocessobject