Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sdeno/deps.ts>os.platform

Steno on Deno. Specialized fast async file writer.
Go to Latest
function os.platform
import { os } from "https://deno.land/x/sdeno@v1.0.11/deps.ts";
const { platform } = os;

Returns the a string identifying the operating system platform. The value is set at compile time. Possible values are 'darwin', 'linux', and 'win32'.

Returns

string