Get the UTI (Uniform Type Identifier) of a file on macOS
$ npm install file-uti
import {fileUti} from 'file-uti';
console.log(await fileUti('index.js'));
//=> 'com.netscape.javascript-source'
Returns a Promise<string> with the UTI.
Returns a string with the UTI.
mdls on macOS