feature/nodejs_implementation #1

Merged
revengeday merged 11 commits from zeyus/hit-counter:feature/nodejs_implementation into main 2024-11-07 15:30:00 +00:00
Showing only changes of commit 5d1d67836c - Show all commits

View file

@ -123,18 +123,13 @@ function extToFormat(ext: string): keyof FormatEnum {
}
/**
* Determine whether the given `path` is a http(s) URL. This method
* accepts a string value and a URL instance.
*
* inspiration:
* Marcus Pöhls
* https://futurestud.io/tutorials/node-js-check-if-a-path-is-a-file-url
* Check if a path is a web URI.
*
* @param {String|URL} path
* The path to check.
* The path to check.
*
* @returns {Boolean}
* True if the path is a web URI, false otherwise.
* Whether the path is a web URI.
*/
function isWebURI(path: string | URL): boolean {
try {