New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cuties/process

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/process

Cutie extension for process module in Node.

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

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

Keywords

cutie

FAQs

Package last updated on 10 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts