Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 5, 2015
1 parent e7e609b commit 4832474
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions readme.md
Expand Up @@ -7,36 +7,36 @@ Useful for analytics and debugging.

## Install

```sh
```
$ npm install --save os-name
```


## Usage

```js
var os = require('os');
var osName = require('os-name');
const os = require('os');
const osName = require('os-name');

// on an OS X Mavericks system

osName();
//=> OS X Mavericks
//=> 'OS X Mavericks'

osName(os.platform(), os.release());
//=> OS X Mavericks
//=> 'OS X Mavericks'

osName(os.platform());
//=> OS X
//=> 'OS X'

osName('linux', '3.13.0-24-generic');
//=> Linux 3.13
//=> 'Linux 3.13'

osName('win32', '6.3.9600');
//=> Windows 8.1
//=> 'Windows 8.1'

osName('win32');
// Windows
// 'Windows'
```


Expand All @@ -53,15 +53,15 @@ Check out [getos](https://github.com/wblankenship/getos) if you need the Linux d

## CLI

```sh
```
$ npm install --global os-name
```

```sh
```
$ os-name --help
Example
os-name
$ os-name
OS X Mavericks
```

Expand Down

0 comments on commit 4832474

Please sign in to comment.