https://github.com/kessler/isos
test the current OS // isOs('windows'), isOs('linux')
https://github.com/kessler/isos
Last synced: 8 months ago
JSON representation
test the current OS // isOs('windows'), isOs('linux')
- Host: GitHub
- URL: https://github.com/kessler/isos
- Owner: kessler
- License: mit
- Created: 2014-06-04T18:55:34.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T05:29:50.000Z (over 11 years ago)
- Last Synced: 2025-10-08T18:18:49.246Z (8 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# isos
test the current OS
on mac:
```
var isOs = require('isos')
assert.ok(isOs('mac'))
assert.ok(isOs('darwin'))
assert.ok(isOs('osx'))
```
on windows:
```
var isOs = require('isos')
assert.ok(isOs('linux'))
```
on windows:
```
var isOs = require('isos')
assert.ok(isOs('windows'))
assert.ok(isOs('win32'))
```
etc...