{"id":28442040,"url":"https://github.com/guseyn/cutie-process","last_synced_at":"2025-06-14T22:10:06.091Z","repository":{"id":57105029,"uuid":"135112720","full_name":"Guseyn/cutie-process","owner":"Guseyn","description":"Cutie extension for process module in Node.","archived":false,"fork":false,"pushed_at":"2019-05-10T21:18:56.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T07:47:56.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Guseyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-28T05:20:37.000Z","updated_at":"2019-05-10T21:18:58.000Z","dependencies_parsed_at":"2022-08-21T03:00:21.973Z","dependency_job_id":null,"html_url":"https://github.com/Guseyn/cutie-process","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Guseyn/cutie-process","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guseyn%2Fcutie-process","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guseyn%2Fcutie-process/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guseyn%2Fcutie-process/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guseyn%2Fcutie-process/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guseyn","download_url":"https://codeload.github.com/Guseyn/cutie-process/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guseyn%2Fcutie-process/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259890461,"owners_count":22927374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-06T05:39:35.158Z","updated_at":"2025-06-14T22:10:06.069Z","avatar_url":"https://github.com/Guseyn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cutie-process\n\n[![NPM Version](https://img.shields.io/npm/v/@cuties/process.svg)](https://npmjs.org/package/@cuties/process)\n[![Build Status](https://travis-ci.org/Guseyn/cutie-process.svg?branch=master)](https://travis-ci.org/Guseyn/cutie-process)\n[![codecov](https://codecov.io/gh/Guseyn/cutie-process/branch/master/graph/badge.svg)](https://codecov.io/gh/Guseyn/cutie-process)\n\n[Cutie](https://github.com/Guseyn/cutie) extension for \u003cb\u003eprocess\u003c/b\u003e module in Node. It's based on the [Async Tree Pattern](https://github.com/Guseyn/async-tree-patern/blob/master/Async_Tree_Patern.pdf).\n\n## Examples\n\nYou can find examples of using this library in the [test directory](https://github.com/Guseyn/cutie-process/tree/master/test).\n\n## Install\n\n`npm install @cuties/process`\n\n## Run test\n\n`npm test`\n\n## Run build\n\n`npm run build`\n\n## Usage\n\n```js\nconst {\n  // Needed async objects here from the table below\n} = require('@cuties/process');\n```\nFor more information about parameters in the async objects visit [docs of Node](https://nodejs.org/en/docs/) for \u003cb\u003eprocess\u003c/b\u003e module.\n\n| Async Object  | Async/sync call | Parameters(default value/description) | Representation result |\n| ------------- | ----------------| ---------- | --------------------- |\n| `Arch` | `process.arch` | `process` | `string` |\n| `Argv` | `process.argv` | `process` | `string[]` |\n| `Argv0` | `process.argv0` | `process` | `string` |\n| `Channel` | `process.channel` | `process` | `object\\|undefined` |\n| `Chdir` | `process.chdir` | `process, dir` | `string` |\n| `Config` | `process.config` | `process` | `object` |\n| `CpuUsage` | `process.cpuUsage` | `process, previousValue` | `object` |\n| `Cwd` | `process.cwd` | `process` | `string` |\n| `DebugPort` | `process.debugPort` | `process` | `number` |\n| `DisconnectedProcess` | `process.disconnect` | `process` | `process` |\n| `Egid` | `process.getegid` | `process` | `number` |\n| `Env` | `process.env` | `process` | `object` |\n| `Euid` | `process.geteuid` | `process` | `number` |\n| `ExecArgv` | `process.execArgv` | `process` | `object` |\n| `ExecPath` | `process.execPath` | `process` | `string` |\n| `ExitCode` | `process.exitCode` | `process` | `number` |\n| `ExitedProcess` | `process.exit` | `process, code` | `process` |\n| `FoundProcessOnPort` | `find(from find-process)` | `port` | `first found process or {} if no process on the specified port` |\n| `Gid` | `process.getgid` | `process` | `number` |\n| `Hrtime` | `process.hrtime` | `process, time` | `number[]` |\n| `IsConnected` | `process.connected` | `process` | `boolean` |\n| `KilledProcess` | `process.kill` | `pid, signal` | `process(as pid)` |\n| `MainModule` | `process.mainModule` | `process` | `module` |\n| `MemoryUsage` | `process.memoryUsage` | `process` | `object` |\n| `NextTick` | `process.nextTick` | `process, callback, ...args` | `process` |\n| `NoDeprecation` | `process.noDeprecation` | `process` | `boolean` |\n| `Pid` | `process.pid` | `process` | `number` |\n| `Platform` | `process.platform` | `process` | `string` |\n| `ProcessWithBeforeExitEvent` | `process.on('beforeExit', event)` | `process, event(Event with definedBody(exitCode))` | `process` |\n| `ProcessWithDisconnectEvent` | `process.on('disconnect', event)` | `process, event(Event with definedBody())` | `process` |\n| `ProcessWithEmitedWarning` | `process.emitWarning` | `warning, options` | `process` |\n| `ProcessWithExitEvent` | `process.on('exit', event)` | `process, event(Event with definedBody(code))` | `process` |\n| `ProcessWithMessageEvent` | `process.on('message', event)` | `process, event(Event with definedBody(message, sendHandle))` | `process` |\n| `ProcessWithRejectionHandledEvent` | `process.on('rejectionHandled', event)` | `process, event(Event with definedBody(p), p - promise)` | `process` |\n| `ProcessWithSignalEvent` | `process.on(signal, event)` | `process, signal, event(Event with definedBody())` | `process` |\n| `ProcessWithUncaughtExceptionEvent` | `process.on('uncaughtException', event)` | `process, event(Event with definedBody(error))` | `process` |\n| `ProcessWithUnhandledRejectionEvent` | `process.on('unhandledRejection', event)` | `process, event(Event with definedBody(reason, p))` | `process` |\n| `ProcessWithWarningEvent` | `process.on('warning', event)` | `process, event(Event with definedBody(warning))` | `process` |\n| `Release` | `process.release` | `process` | `object` |\n| `SentMessage` | `process.send` | `process, message, sendHandle, options, callback` | `message` |\n| `StdErr` | `process.stderr` | `process` | `stream` |\n| `StdIn` | `process.stdin` | `process` | `stream` |\n| `StdOut` | `process.stdout` | `process` | `stream` |\n| `ThrowDeprecation` | `process.throwDeprecation` | `process` | `boolean` |\n| `Title` | `process.title` | `process` | `string` |\n| `TraceDeprecation` | `process.traceDeprecation` | `process` | `boolean` |\n| `Uid` | `process.getuid` | `process` | `number` |\n| `Umask` | `process.umask` | `process, mask` | `process` |\n| `Uptime` | `process.uptime` | `process` | `number` |\n| `Version` | `process.version` | `process` | `string` |\n| `Versions` | `process.versions` | `process` | `object` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguseyn%2Fcutie-process","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguseyn%2Fcutie-process","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguseyn%2Fcutie-process/lists"}