Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
/ accepts-https Public archive

Detects if a domain responds to HTTPS requests. Supports only port 443. Detects socket errors, connection reset and connection refused. Almost full test coverage.

License

Notifications You must be signed in to change notification settings

tractr/accepts-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

accepts-https

Description

Detects if a domain responds to HTTPS requests. Supports only port 443. Detects socket errors, connection reset and connection refused. Almost full test coverage.

Usage

// initialization
const config = {
    timeout: 1000 // default value
}
const acceptsHttps = require('accepts-https')(config);

await acceptsHttps('google.com');
// true

await acceptsHttps('localhost');
// false

License

MIT

About

Detects if a domain responds to HTTPS requests. Supports only port 443. Detects socket errors, connection reset and connection refused. Almost full test coverage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published