-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# get-osx-version | ||
[![Build Status](https://travis-ci.org/fscherwi/get-osx-version.svg?branch=master)](https://travis-ci.org/fscherwi/get-osx-version) [![Coverage Status](https://coveralls.io/repos/fscherwi/get-osx-version/badge.svg?branch=master&service=github)](https://coveralls.io/github/fscherwi/get-osx-version?branch=master) [![bitHound Overalll Score](https://www.bithound.io/github/fscherwi/get-osx-version/badges/score.svg)](https://www.bithound.io/github/fscherwi/get-osx-version) | ||
|
||
## Get the OS X versions from the running system! | ||
## Get the Mac OS versions from the running system! | ||
# Example script | ||
Output your current OSX version! | ||
Output your current Mac OS version! | ||
|
||
```js | ||
var osx_version = require('get-osx-version').get(); | ||
var mac_os_version = require('get-osx-version').get(); | ||
|
||
console.log('OSX version: ' + osx_version); | ||
console.log('Mac OS version: ' + mac_os_version); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env node | ||
console.log('\nOSX version: %s\n', require('./main.js').get()); | ||
console.log('\nMac OS version: %s\n', require('./main.js').get()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
var osx_version = require('./main.js').get(); /* istanbul ignore next */ | ||
var mac_os_version = require('./main.js').get(); /* istanbul ignore next */ | ||
if (process.platform !== 'darwin') { | ||
if (osx_version !== 'no OSX system') { | ||
if (mac_os_version !== 'no Mac OS system') { | ||
console.log('ERROR'); | ||
process.exit(1); | ||
} | ||
} | ||
console.log('\nOSX version: %s\n', osx_version); | ||
console.log('\nMac OS version: %s\n', mac_os_version); |