MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / safeDirname

Function safeDirname

src/lib/prettierFormatter.js:206–212  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

204}
205
206function safeDirname(path) {
207 try {
208 return Url.dirname(path);
209 } catch (_) {
210 return null;
211 }
212}
213
214async function readConfigFromDirectory(directory) {
215 if (!directory) return null;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected