1.0.22 • Published 2 days ago
https-tls v1.0.22
https-tls
Setup HTTPS details related to TLS according to the User Agent provided. Source code from got-scraping.
Install
$ npm install https-tls --save
Usage
'use strict'
const uniqueRandomArray = require('unique-random-array')
const userAgents = require('top-user-agents')
const tls = require('https-tls')
const randomUserAgent = uniqueRandomArray(userAgents)
const userAgent = randomUserAgent()
const https = tls(userAgent)
console.log(https)
// {
// ciphers: 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:…',
// signatureAlgorithms: 'ecdsa_secp256r1_sha256:rsa_pss_rsae_sha256:rsa_pkcs1_sha256…',
// ecdhCurve: 'X25519:prime256v1:secp384r1',
// minVersion: 'TLSv1',
// maxVersion: 'TLSv1.3'
// }
You can also setup it as got hook:
'use strict'
const got = require('got')
const tlsHook = require('https-tls/hook')
const instance = got.extend({
hooks: {
beforeRequest: [
tlsHook
]
}
})
License
https-tls © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats
1.0.22
2 days ago
1.0.21
11 days ago
1.0.20
11 days ago
1.0.19
14 days ago
1.0.18
14 days ago
1.0.17
14 days ago
1.0.16
7 months ago
1.0.15
8 months ago
1.0.14
8 months ago
1.0.13
10 months ago
1.0.11
2 years ago
1.0.12
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.10
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
0.0.3
2 years ago