Skip to content

Commit

Permalink
add advanced usage example to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fscherwi committed Aug 12, 2018
1 parent 6e8c9b5 commit adbe9b8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@ npm install --save get-user-agent
```javascript
var useragent = require('get-user-agent');

useragent.firefox(62);
console.log(useragent.firefox(62));
```

**with custom system information**

```javascript
var useragent = require('get-user-agent');

useragent.firefox(62, 'Macintosh; Intel Mac OS X 10.14');
console.log(useragent.firefox(62, 'Macintosh; Intel Mac OS X 10.14'));
```

**advanced usage**

```javascript
var useragent = require('get-user-agent');

console.log(useragent.firefoxAdvanced(version = '41.0', GeckoVersion = '20100101', SysInfo = 'Macintosh; Intel Mac OS X 10.11'));
```

## API
Expand Down

0 comments on commit adbe9b8

Please sign in to comment.