top-user-agents 1.0.58 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,20 +16,18 @@ $ npm install top-user-agents --save
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
|
18
18
|
```js
|
|
19
|
-
const userAgents = require('top-user-agents')
|
|
20
19
|
const uniqueRandomArray = require('unique-random-array')
|
|
21
|
-
|
|
22
|
-
console.log(userAgents[0])
|
|
23
|
-
// => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
|
|
20
|
+
const userAgents = require('top-user-agents')
|
|
24
21
|
|
|
25
22
|
const randomUserAgent = uniqueRandomArray(userAgents)
|
|
23
|
+
|
|
26
24
|
console.log(randomUserAgent())
|
|
27
|
-
// => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
|
|
25
|
+
// => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36'
|
|
28
26
|
```
|
|
29
27
|
|
|
30
28
|
## Related
|
|
31
29
|
|
|
32
|
-
- [crawler-
|
|
30
|
+
- [top-crawler-agents](https://github.com/Kikobeats/top-crawler-agents) – A list of common crawler user agents useful for retrieving metadata from links.
|
|
33
31
|
|
|
34
32
|
**top-user-agents** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/top-user-agents/blob/master/LICENSE.md) License.<br>
|
|
35
33
|
Authored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/Kikobeats/top-user-agents/contributors).
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "top-user-agents",
|
|
3
3
|
"description": "A list of most common User Agent.",
|
|
4
4
|
"homepage": "https://github.com/Kikobeats/top-user-agents",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.60",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "josefrancisco.verdu@gmail.com",
|