Node os.type function | API Reference | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:os/
typeFtype
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:os/
typeFtype
function
os.typefunction
type(): string;
Returns the operating system name as returned by uname(3). For example, it returns 'Linux' on Linux, 'Darwin' on macOS, and 'Windows_NT' on Windows.
See https://en.wikipedia.org/wiki/Uname#Examples for additional information about the output of running uname(3) on various operating systems.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →