is-file-esm checks if a given path represents a file using asynchronous fsPromises.stat(). Optimized for ES modules, it provides a cleaner and more modern alternative to synchronous checks. Unlike fs.existsSync(), this package avoids potential race conditions and performance issues by utilizing asynchronous operations. This makes it suitable for applications requiring efficient and non-blocking file existence verification in an ES module environment. Returns a Promise that resolves to true if the path is a file, otherwise false.