10 lines
314 B
JavaScript
10 lines
314 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.size = size;
|
|
const promises_1 = require("fs/promises");
|
|
async function size(filePath) {
|
|
const stats = await (0, promises_1.stat)(filePath);
|
|
return stats.size;
|
|
}
|
|
module.exports = { size };
|
|
//# sourceMappingURL=index.js.map
|