Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

user-os

boccinfusot27MIT1.0.2

Super simple with no bloat. Great for flagging what the user's OS is.

getOS, userOS, OS, operating system

readme

Usage

getOS();
// returns the user's operating system
// Win, Linux, Mac, UNIX