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
@kronos-integration/service-uti
uti provider service
kronos-service-uti
uti provider service
@ember-template-lint/todo-utils
![CI Build](https://github.com/ember-template-lint/ember-template-lint-todo-utils/workflows/CI%20Build/badge.svg) [![npm version](https://badge.fury.io/js/%40ember-template-lint%2Ftodo-utils.svg)](https://badge.fury.io/js/%40ember-template-lint%2Ftodo-uti
file-uti
Get the UTI (Uniform Type Identifier) of a file on macOS
javascript implementation of a "Universal Type Identifier"
npm install uti
Typescript
Module System
Min. Node Version
Node Version
NPM Version
78
Supply Chain
100
Quality
82.8
Maintenance
100
Vulnerability
100
License
Updated on 04 Dec 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
39.9%
Compared to previous day
Last week
-6%
Compared to previous week
Last month
92.6%
Compared to previous month
Last year
109.8%
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
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
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-02
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