Whether value is a NIP-5D source location: an absolute http, https, ssh, git or nostr URL, or Git's scp-like [user@]host:path syntax. Local paths and file URLs are rejected.
value
http
https
ssh
git
nostr
[user@]host:path
file
Candidate source tag value
source
true only for an accepted location format
true
isSourceLocation('git@git.example.com:owner/napplet.git'); // true Copy
isSourceLocation('git@git.example.com:owner/napplet.git'); // true
Whether
valueis a NIP-5D source location: an absolutehttp,https,ssh,gitornostrURL, or Git's scp-like[user@]host:pathsyntax. Local paths andfileURLs are rejected.