Init commit
This commit is contained in:
11
packages/node-utils/src/file.ts
Normal file
11
packages/node-utils/src/file.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { stat } from 'fs/promises'
|
||||
|
||||
async function getFileSize (path: string) {
|
||||
const stats = await stat(path)
|
||||
|
||||
return stats.size
|
||||
}
|
||||
|
||||
export {
|
||||
getFileSize
|
||||
}
|
||||
Reference in New Issue
Block a user