UNPKG

ripstat

Version:

Fetch the stats for a file as if a saber-tooth tiger is chasing you!

10 lines (9 loc) 436 B
/* IMPORT */ import process from 'node:process'; /* MAIN */ const IS_WINDOWS = (process.platform === 'win32'); const { MAX_SAFE_INTEGER } = Number; const RETRY_TIMEOUT = 5000; const { S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFMT, S_IFREG, S_IFSOCK } = process['binding']('constants').fs; /* EXPORT */ export { IS_WINDOWS, MAX_SAFE_INTEGER, RETRY_TIMEOUT, S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFMT, S_IFREG, S_IFSOCK };