Gathering detailed insights and metrics for uti
Gathering detailed insights and metrics for uti
Gathering detailed insights and metrics for uti
Gathering detailed insights and metrics for uti
npm install uti
Typescript
Module System
Min. Node Version
Node Version
NPM Version
77.1
Supply Chain
100
Quality
86.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
0BSD License
5 Stars
2,917 Commits
1 Forks
3 Watchers
1 Branches
5 Contributors
Updated on Jun 29, 2025
Latest Version
8.9.0
Package Id
uti@8.9.0
Unpacked Size
45.74 kB
Size
8.65 kB
File Count
8
NPM Version
10.9.2
Node Version
22.15.1
Published on
May 21, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
Please see ars technica article for a description about the principles of UTIs.
For a list of known UTIs please see here
1import { UTIController } from "uti"; 2 3const uc = new UTIController(); 4const doesConformTo = uc.conformsTo("public.image", "public.data"); 5console.log("doesConformTo: " + doesConformTo); 6 7console.log(uc.getUTIsForFileName("a.txt")[0]);
Output
1doesConformTo: true 2public.plain-text
Type: Object
name
string conformsTo
(string | Array<string>)? mimeType
(string | Array<string>)? fileNameExtension
(string | Array<string>)? Object representing a UTI.
Type: string
Check for conformity.
Returns boolean true if other conforms to the receiver
name of the UTI.
Returns string
Deliver JSON representation of the UTI. Sample result
1{ 2 "name": "myUTI", 3 "conformsTo": [ "uti1", "uti2"] 4}
Returns {name: string, conforms: Array<string>} json representation of the UTI
Registry of UTIs.
Type: Map<string, Array<string>>
Type: Map<string, Array<string>>
Registers additional types.
types
Array<UTIDeclaration> Lookup a given UTI.
name
string UTIReturns (UTI | undefined) UTI for the given name or undefined if UTI is not present.
Lookup a UTIs for a mime type.
mimeType
string mime type to get UTIs forReturns Array<string> UTIs for the given mime type
Lookup a UTI for a file name. First the file name extension is extracted. Then a lookup in the registered UTIs for file name extension is executed.
fileName
string file to detect UTI forReturns Array<string> UTIs for the given fileName
Check whenever two UTI are conformant. If a conforms to b and b conforms to c then a also conforms to c.
Returns boolean true if UTI a conforms to UTI b.
Lookup a UTI for a file name and check conformance.
Returns boolean true if utils for file name are conformant
Assign mime types to a UTI
Assign mime types to a UTI
With npm do:
1npm install uti
BSD-2-Clause
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
2 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Moredefault-browser-id
Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
bundle-name
Get bundle name from a bundle identifier (macOS): `com.apple.Safari` → `Safari`
default-browser
Get the default browser
@kronos-integration/service-uti
uti provider service