3.0.1 • Published 4 years ago
file-uti v3.0.1
file-uti
Get the UTI (Uniform Type Identifier) of a file on macOS
Install
$ npm install file-utiUsage
import {fileUti} from 'file-uti';
console.log(await fileUti('index.js'));
//=> 'com.netscape.javascript-source'API
fileUti(filePath)
Returns a Promise<string> with the UTI.
fileUtiSync(filePath)
Returns a string with the UTI.
Related
- uti-cli - CLI for this module
- file-metadata - Get file metadata using
mdlson macOS