filepond
Version:
FilePond, where files go to stretch their bits.
22 lines (21 loc) • 486 B
JavaScript
/*!
* FilePond v5.0.2
* Copyright (c) 2017-2026 Pqina B.V.
* Released under the MIT License
* https://filepond.com
*/
import { isURL as e } from "./test.js";
function o(n = "") {
return r(n).pathname.split("/").pop();
}
function l(n) {
return n.split("?")[0].split("/").filter((t) => t.length).slice(-1)[0];
}
function r(n) {
return e(n) ? n instanceof URL ? n : new URL(n) : new URL(n, location?.href);
}
export {
o as getFilenameFromURL,
r as toURL,
l as urlToFilename
};