Skip to content

MarvinJWendt/node-check-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-os

Check if the current operating system is what you need

Usage

Install

const os = require('check-os')

In code

if(os.isWindows) {...} //Check if current os is Windows
if(os.isMacOS) {...} //Check if current os is MacOS
if(os.isLinux) {...} //Check if current os is Linux
if(os.isSunOs) {...} //Check if current os is SunOS
if(os.FreeBSD) {...} //Check if current os is FreeBSD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published