question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Convert a host to a valid URL automatically

See original GitHub issue

Is your feature request related to a problem? Please describe. If a host is provided and not a URL with the protocol scheme then lighthouse won’t handle it. This doesn’t work:

npx is-website-vulnerable example.com

But this does:

npx is-website-vulnerable http://example.com

Describe the solution you’d like We can convert the website argument provided and turn it into a URL using Node.js’ built in API for this, then pass it to lighthouse.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lirantalcommented, Oct 6, 2019

Sounds like a plan 👍

1reaction
SoldierCorpcommented, Oct 6, 2019

Hi, can I take this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to convert a text to URL format using javascript
Basically I want to know that how to build code snippet so that when a user input text and click on the submit...
Read more >
<input type="url"> - HTML: HyperText Markup Language | MDN
The input value is automatically validated to ensure that it's either empty or a properly-formatted URL before the form can be submitted.
Read more >
Creating a URL - The Java™ Tutorials
The easiest way to create a URL object is from a String that represents the human-readable form of the URL address. This is...
Read more >
Set up a custom domain for Dynamic Links - Firebase
Set up a custom domain manually · Set appAssociation to AUTO . With this setting, Hosting dynamically generates assetlinks. · Specify the path...
Read more >
Map a new URL to a site in Google Sites
In new Sites, address mappings automatically supply domain-validated SSL certificates for secure connections. You can't use other certificates. In new Sites, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found