loaders ยป url
url() โ string
urlItems() โ array
urlList() โ array
Validates a URL and returns it unaltered (or throws an error for an invalid URL).
enogood: https://json.org
bad: www.boom
javascriptconst document = eno.parse(input);
document.url('good'); // returns 'https://json.org'
document.url('bad');
// throws an error: 'bad' must contain valid URL, for instance 'https://eno-lang.org'.