Skip to content

Commit 1c46a2b

Browse files
committed
Update description of Bots
1 parent 356ec17 commit 1c46a2b

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

docs/api/submodules/enums.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ import { Bots } from 'ua-parser-js/extensions';
120120
import { BrowserType } from 'ua-parser-js/enums';
121121

122122
const botParser = new UAParser(Bots);
123-
const typeofBrowser = botParser.setUA(req.headers['user-agent']).getBrowser().type;
123+
const typeofBrowser = botParser
124+
.setUA(req.headers['user-agent'])
125+
.getBrowser()
126+
.type;
124127
if (typeofBrowser == BrowserType.CRAWLER) {
125128
console.log('Hi, hello there Spidey!');
126129
}

docs/api/submodules/extensions/overview.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44

55
## List of Built-in Extensions:
66

7-
- [CLIs 🡭](clis.md)
8-
- [Crawlers 🡭](crawlers.md)
9-
- [ExtraDevices 🡭](extra-devices.md)
10-
- [Emails 🡭](emails.md)
11-
- [Fetchers 🡭](fetchers.md)
12-
- [InApps 🡭](inapps.md)
13-
- [Libraries 🡭](libraries.md)
14-
- [MediaPlayers 🡭](media-players.md)
7+
- [`CLIs`](clis.md)
8+
- [`Crawlers`](crawlers.md)
9+
- [`ExtraDevices`](extra-devices.md)
10+
- [`Emails`](emails.md)
11+
- [`Fetchers`](fetchers.md)
12+
- [`InApps`](inapps.md)
13+
- [`Libraries`](libraries.md)
14+
- [`MediaPlayers`](media-players.md)
15+
16+
::: tip
17+
`Bots` is a combination of `CLIs`, `Crawlers`, `Fetchers`, and `Libraries`, merged together while preserving the browser type.
18+
:::
1519

1620
## Code Example
1721

0 commit comments

Comments
 (0)