GitShow/sindresorhus/is-absolute-url
sindresorhus

is-absolute-url

Check if a URL is absolute

by sindresorhus
Star on GitHubForknpm

JavaScript

80 stars14 forks8 contributorsQuiet · 11mo agoSince 2014v5.0.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus23 contributions
alexbrasetvik
alexbrasetvik1 contribution
andybelltree
andybelltree1 contribution
morellodev
morellodev1 contribution
BendingBender
BendingBender1 contribution
kevva
kevva1 contribution
KyleAMathews
KyleAMathews1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript100%

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 fixes

View closed PRs →
ghost
package deprecatedClosedIssue

https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static does basically the same thing

ghost · 11mo ago
callumlocke
Only allow HTTP URLs by defaultClosedIssue

Although this might be technically correct (?), it seems like it's not what most people would think of as an absolute URL, and it could lead to a false sense of security that the input has been validated as a 'real' URL. Possible solutions: Release a new major version that ensures the protocol is or Maybe with an option like for people who want the old behaviour. Or just add a warning in the readme that this will return true for any protocol, even .

callumlocke · 11mo ago
morellodev
Extract the regex declaration outside the functionMergedPR

Closes #15

morellodev · 5y ago
Structured data for AI agents

Repository: sindresorhus/is-absolute-url. Description: Check if a URL is absolute Stars: 80, Forks: 14. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v5.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, alexbrasetvik, andybelltree, morellodev, BendingBender, kevva, KyleAMathews, Richienb.

·@ofershap

Replace github.com with gitshow.dev