12 lines
159 B
TypeScript
12 lines
159 B
TypeScript
|
import { stat } from 'fs-extra'
|
||
|
|
||
|
async function getFileSize (path: string) {
|
||
|
const stats = await stat(path)
|
||
|
|
||
|
return stats.size
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
getFileSize
|
||
|
}
|