GitShow/sindresorhus/is-url-superb
sindresorhus

is-url-superb

Check if a string is a URL

by sindresorhus
Star on GitHubForknpm

JavaScript

87 stars7 forks5 contributorsQuiet · 3y agoSince 2014v6.1.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus16 contributions
kevva
kevva3 contributions
bndnsmth
bndnsmth1 contribution
BendingBender
BendingBender1 contribution
felladrin
felladrin1 contribution

Languages

View on GitHub →
JavaScript84%
TypeScript16%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 3y ago
See all on GitHub →
NovaAppsInc
fix `lenient` optionOpenPR

The option always returns true, so I added the package to validate whether or not it's a domain.

NovaAppsInc · 1y ago

Recent fixes

View closed PRs →
AleksandrHovhannisyan
isUrl('https://www') returns true (as does any https://xyz)ClosedIssue

Same for the http variant. Technically, this isn't an issue with your package since for some reason the constructor allows you to create URLs like even though they're missing the TLD. Is this working as expected? If not, where would I file an issue for something like this that's built into JS?

AleksandrHovhannisyan · 2y ago
hongrunhui
could you change 【try {}catch{}】to 【try {} catch(e) {}】?ClosedIssue

!2a8228e709d662ed9f244b4a6731d97b

hongrunhui · 4y ago
felladrin
Add `lenient` optionMergedPR

Fixes #11 in a bit different way of how it was being discussed. Instead of using https://github.com/sindresorhus/prepend-http, it will first try , as usual, cause it already covers all valid cases. And only if it fails, it checks if lenient mode is enabled; if so, it checks if prepending the protocol makes the input a valid url. This way we keep the logic simple and avoid adding a dependency to the package. What do you think?

felladrin · 4y ago
Structured data for AI agents

Repository: sindresorhus/is-url-superb. Description: Check if a string is a URL Stars: 87, Forks: 7. Primary language: JavaScript. Languages: JavaScript (84%), TypeScript (16%). License: MIT. Latest release: v6.1.0 (4y ago). Open PRs: 1, open issues: 0. Last activity: 3y ago. Community health: 85%. Top contributors: sindresorhus, kevva, bndnsmth, BendingBender, felladrin.

·@ofershap

Replace github.com with gitshow.dev