mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
feat(std/node): add os.loadavg() (#4075)
This commit is contained in:
parent
c34d96d865
commit
fb98556d56
8 changed files with 58 additions and 26 deletions
6
cli/js/lib.deno.ns.d.ts
vendored
6
cli/js/lib.deno.ns.d.ts
vendored
|
@ -40,6 +40,12 @@ declare namespace Deno {
|
|||
stderr: boolean;
|
||||
};
|
||||
|
||||
/** Get the loadavg. Requires the `--allow-env` flag.
|
||||
*
|
||||
* console.log(Deno.loadavg());
|
||||
*/
|
||||
export function loadavg(): number[];
|
||||
|
||||
/** Get the hostname. Requires the `--allow-env` flag.
|
||||
*
|
||||
* console.log(Deno.hostname());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue