Socket
Book a DemoInstallSign in
Socket

file-uti

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-uti

Get the UTI (Uniform Type Identifier) of a file on macOS

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

file-uti

Get the UTI (Uniform Type Identifier) of a file on macOS

Install

$ npm install file-uti

Usage

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.

  • uti-cli - CLI for this module
  • file-metadata - Get file metadata using mdls on macOS

Keywords

uti

FAQs

Package last updated on 07 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts