MCPcopy Create free account
hub / github.com/babel/minify / isDir

Function isDir

scripts/plugin-contribution.js:130–136  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

128}
129
130function isDir(p) {
131 try {
132 return fs.statSync(p).isDirectory();
133 } catch (e) {
134 return false;
135 }
136}
137
138function len(str) {
139 return Buffer.byteLength(str, "utf-8");

Callers 1

getPluginsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected