is there a way to check a domain if the domain has http or https with nodejs.
const http_code = domain => { needle.get(domain, (err, res) => {