- Full-featured monitoring dashboard for local web apps - Real-time status tracking with uptime percentages - Visual sparklines for status history - Add/Edit/Delete apps dynamically - Categories and color coding - Auto-refresh every 30 seconds - API endpoints for apps and status management
11 lines
262 B
JavaScript
11 lines
262 B
JavaScript
import fs from 'fs';
|
|
export async function isWriteable(directory) {
|
|
try {
|
|
await fs.promises.access(directory, (fs.constants || fs).W_OK);
|
|
return true;
|
|
} catch (err) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=is-writeable.js.map
|