An open API service indexing awesome lists of open source software.

https://github.com/marvinjwendt/node-check-os


https://github.com/marvinjwendt/node-check-os

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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