Copy as curl

This commit is contained in:
Gregory Schier
2024-05-08 00:00:50 -07:00
parent edc4fe3d9a
commit b196e51f1f
32 changed files with 4352 additions and 507 deletions

View File

@@ -114,7 +114,8 @@ const ae = "curl", se = "cURL", ie = "cURL command line tool", H = ["d", "data",
["request", "X"],
// Request method
H
].flatMap((n) => n), oe = (n) => {
].flatMap((n) => n);
function oe(n) {
if (!n.match(/^\s*curl /))
return null;
const s = [], e = n.replace(/([^\\])\n/g, "$1; ");
@@ -151,7 +152,7 @@ const ae = "curl", se = "cURL", ie = "cURL command line tool", H = ["d", "data",
workspaces: [f]
}
};
};
}
function te(n, s) {
const e = {}, t = [];
for (let o = 1; o < n.length; o++) {