@cjser/file-uti
v3.0.1-cjser.2
Published
Get the UTI (Uniform Type Identifier) of a file on macOS
Maintainers
Readme
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
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/file-uti
