diff options
author | ecyrbe <ecyrbe@gmail.com> | 2020-02-21 18:01:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 12:01:01 -0500 |
commit | 754b8c65ad5adda2961c667a6b64ab59c130111d (patch) | |
tree | d7ddf24951a444cc3fb3c9beefbcb230dab62194 /std/node/os.ts | |
parent | 08686cbc3ae63008837ee45b2c4f41d6674c57dd (diff) |
feat(std/node) : add os.platform (#4064)
Diffstat (limited to 'std/node/os.ts')
-rw-r--r-- | std/node/os.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/node/os.ts b/std/node/os.ts index 3bff03a69..8facde292 100644 --- a/std/node/os.ts +++ b/std/node/os.ts @@ -21,6 +21,7 @@ import { notImplemented } from "./_utils.ts"; import { validateIntegerRange } from "./util.ts"; import { EOL as fsEOL } from "../fs/eol.ts"; +import { process } from "./process.ts"; const SEE_GITHUB_ISSUE = "See https://github.com/denoland/deno/issues/3802"; @@ -144,10 +145,9 @@ export function loadavg(): number[] { export function networkInterfaces(): NetworkInterfaces { notImplemented(SEE_GITHUB_ISSUE); } - -/** Not yet implemented */ +/** Returns the a string identifying the operating system platform. The value is set at compile time. Possible values are 'darwin', 'linux', and 'win32'. */ export function platform(): string { - notImplemented(SEE_GITHUB_ISSUE); + return process.platform; } /** Not yet implemented */ |