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
default-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
npm install uti
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
153,374
Last Day
61
Last Week
905
Last Month
5,414
Last Year
72,014
5 Stars
2,755 Commits
1 Forks
4 Watching
1 Branches
5 Contributors
Latest Version
8.7.1
Package Id
uti@8.7.1
Unpacked Size
43.70 kB
Size
8.50 kB
File Count
8
NPM Version
10.9.2
Node Version
22.12.0
Publised On
19 Dec 2024
Cumulative downloads
Total Downloads
Last day
-73.2%
61
Compared to previous day
Last week
-21.7%
905
Compared to previous week
Last month
-22.8%
5,414
Compared to previous month
Last year
100.5%
72,014
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
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.
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
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-12-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 More