UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 167 B
import{stat as r}from"fs/promises";export async function getFileSize(e){try{return(await r(e)).size}catch(r){if(r instanceof Error)throw new Error(r.message)}return-1}