pub fn file_format(path: &Path) -> Format
The format of the file at path (ESM_FILE_FORMAT): by extension, then by the package scope’s "type", then by syntax detection.
path
ESM_FILE_FORMAT
"type"