A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/e6e6ae887d below:

fix the order of `process.md` sections · nodejs/node@e6e6ae8 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+49

-49

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+49

-49

lines changed Original file line number Diff line number Diff line change

@@ -982,6 +982,26 @@ $ bash -c 'exec -a customArgv0 ./node'

982 982

'customArgv0'

983 983

```

984 984 985 +

## `process.availableMemory()`

986 + 987 +

<!-- YAML

988 +

added:

989 +

- v22.0.0

990 +

- v20.13.0

991 +

changes:

992 +

- version: v24.0.0

993 +

pr-url: https://github.com/nodejs/node/pull/57765

994 +

description: Change stability index for this feature from Experimental to Stable.

995 +

-->

996 + 997 +

* {number}

998 + 999 +

Gets the amount of free memory that is still available to the process

1000 +

(in bytes).

1001 + 1002 +

See [`uv_get_available_memory`][uv_get_available_memory] for more

1003 +

information.

1004 + 985 1005

## `process.channel`

986 1006 987 1007

<!-- YAML

@@ -1155,26 +1175,6 @@ is unknown, `0` is returned.

1155 1175

See [`uv_get_constrained_memory`][uv_get_constrained_memory] for more

1156 1176

information.

1157 1177 1158 -

## `process.availableMemory()`

1159 - 1160 -

<!-- YAML

1161 -

added:

1162 -

- v22.0.0

1163 -

- v20.13.0

1164 -

changes:

1165 -

- version: v24.0.0

1166 -

pr-url: https://github.com/nodejs/node/pull/57765

1167 -

description: Change stability index for this feature from Experimental to Stable.

1168 -

-->

1169 - 1170 -

* {number}

1171 - 1172 -

Gets the amount of free memory that is still available to the process

1173 -

(in bytes).

1174 - 1175 -

See [`uv_get_available_memory`][uv_get_available_memory] for more

1176 -

information.

1177 - 1178 1178

## `process.cpuUsage([previousValue])`

1179 1179 1180 1180

<!-- YAML

@@ -1776,6 +1776,35 @@ that started the Node.js process. Symbolic links, if any, are resolved.

1776 1776

'/usr/local/bin/node'

1777 1777

```

1778 1778 1779 +

## `process.execve(file[, args[, env]])`

1780 + 1781 +

<!-- YAML

1782 +

added:

1783 +

- v23.11.0

1784 +

- v22.15.0

1785 +

-->

1786 + 1787 +

> Stability: 1 - Experimental

1788 + 1789 +

* `file` {string} The name or path of the executable file to run.

1790 +

* `args` {string\[]} List of string arguments. No argument can contain a null-byte (`\u0000`).

1791 +

* `env` {Object} Environment key-value pairs.

1792 +

No key or value can contain a null-byte (`\u0000`).

1793 +

**Default:** `process.env`.

1794 + 1795 +

Replaces the current process with a new process.

1796 + 1797 +

This is achieved by using the `execve` POSIX function and therefore no memory or other

1798 +

resources from the current process are preserved, except for the standard input,

1799 +

standard output and standard error file descriptor.

1800 + 1801 +

All other resources are discarded by the system when the processes are swapped, without triggering

1802 +

any exit or close events and without running any cleanup handler.

1803 + 1804 +

This function will never return, unless an error occurred.

1805 + 1806 +

This function is not available on Windows or IBM i.

1807 + 1779 1808

## `process.exit([code])`

1780 1809 1781 1810

<!-- YAML

@@ -3354,35 +3383,6 @@ In custom builds from non-release versions of the source tree, only the

3354 3383

`name` property may be present. The additional properties should not be

3355 3384

relied upon to exist.

3356 3385 3357 -

## `process.execve(file[, args[, env]])`

3358 - 3359 -

<!-- YAML

3360 -

added:

3361 -

- v23.11.0

3362 -

- v22.15.0

3363 -

-->

3364 - 3365 -

> Stability: 1 - Experimental

3366 - 3367 -

* `file` {string} The name or path of the executable file to run.

3368 -

* `args` {string\[]} List of string arguments. No argument can contain a null-byte (`\u0000`).

3369 -

* `env` {Object} Environment key-value pairs.

3370 -

No key or value can contain a null-byte (`\u0000`).

3371 -

**Default:** `process.env`.

3372 - 3373 -

Replaces the current process with a new process.

3374 - 3375 -

This is achieved by using the `execve` POSIX function and therefore no memory or other

3376 -

resources from the current process are preserved, except for the standard input,

3377 -

standard output and standard error file descriptor.

3378 - 3379 -

All other resources are discarded by the system when the processes are swapped, without triggering

3380 -

any exit or close events and without running any cleanup handler.

3381 - 3382 -

This function will never return, unless an error occurred.

3383 - 3384 -

This function is not available on Windows or IBM i.

3385 - 3386 3386

## `process.report`

3387 3387 3388 3388

<!-- YAML

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4