
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Setup HTTPS details related to TLS according to the User Agent provided. Source code from got-scraping.
$ npm install https-tls --save
'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
]
}
})
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
FAQs
Setup HTTPS details related to TLS according to the User Agent provided.
The npm package https-tls receives a total of 615 weekly downloads. As such, https-tls popularity was classified as not popular.
We found that https-tls demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.