https://github.com/marvinjwendt/node-check-os
https://github.com/marvinjwendt/node-check-os
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marvinjwendt/node-check-os
- Owner: MarvinJWendt
- Created: 2018-09-29T13:46:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:17:19.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T18:05:17.519Z (7 months ago)
- Language: JavaScript
- Size: 326 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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