All examples use BASE_URL — set it to your deployment URL.
POST/api/chmod/calculate
Convert between numeric and symbolic chmod. Pass numeric or symbolic.
const res = await fetch(`${BASE_URL}/api/chmod/calculate`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ numeric: "755" })
});
// → { success: true, numeric: "755", symbolic: "rwxr-xr-x", owner: {...}, group: {...}, others: {...} }