First upload version 0.0.1

This commit is contained in:
Neyra
2026-02-05 15:27:49 +08:00
commit 8e9b7201ed
4182 changed files with 593136 additions and 0 deletions

15
node_modules/node-llama-cpp/dist/utils/isUrl.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
export function isUrl(text, throwOnInvalidUrl = true) {
if (text.toLowerCase().startsWith("http://") || text.toLowerCase().startsWith("https://")) {
try {
new URL(text);
return true;
}
catch {
if (throwOnInvalidUrl)
throw new Error(`Invalid URL: ${text}`);
return false;
}
}
return false;
}
//# sourceMappingURL=isUrl.js.map