mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
🔧 Clean check-size output.
This commit is contained in:
parent
ddb1192cdf
commit
991494c04d
@ -41,15 +41,9 @@ export async function checkSize() {
|
||||
} catch (err) {
|
||||
console.error(`- ❌ ${err.message}`);
|
||||
} finally {
|
||||
// Print the results
|
||||
console.log(`- 📁 Directory: ${dir}`);
|
||||
console.log(`- 📏 Size limit: ${convertBytes(sizeLimit)} bytes`);
|
||||
console.log(`- 📏 Max size found: ${convertBytes(maxSize, 'MB')}`);
|
||||
if (maxFiles.length > 0) {
|
||||
maxFiles.forEach((file) => {
|
||||
console.log(`- 📄 File: ${file} - 📦 Size: ${convertBytes(maxSize, 'KB')}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user