{"id":13587897,"url":"https://github.com/NSHipster/uti","last_synced_at":"2025-04-08T02:34:15.671Z","repository":{"id":148253592,"uuid":"223819940","full_name":"NSHipster/uti","owner":"NSHipster","description":"A command-line utility that prints the Uniform Type Identifier for files.","archived":true,"fork":false,"pushed_at":"2019-12-04T15:03:48.000Z","size":7,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T07:40:00.578Z","etag":null,"topics":["macos","uniform-type-identifier","uti"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSHipster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-24T22:31:19.000Z","updated_at":"2023-01-28T05:54:59.000Z","dependencies_parsed_at":"2023-05-19T13:15:19.573Z","dependency_job_id":null,"html_url":"https://github.com/NSHipster/uti","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSHipster%2Futi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSHipster%2Futi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSHipster%2Futi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSHipster%2Futi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSHipster","download_url":"https://codeload.github.com/NSHipster/uti/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247765030,"owners_count":20992217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","uniform-type-identifier","uti"],"created_at":"2024-08-01T15:06:24.873Z","updated_at":"2025-04-08T02:34:15.405Z","avatar_url":"https://github.com/NSHipster.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# uti\n\nA command-line utility that prints the\n[Uniform Type Identifier](https://en.wikipedia.org/wiki/Uniform_Type_Identifier)\nfor the files provided as an argument.\n\n## Requirements\n\n- macOS 10.4+\n\n## Usage\n\n```terminal\n$ uti Hello.swift\npublic.swift-source\n```\n\nResults for multiple path arguments are printed on separate lines\nin the order they're provided:\n\n```terminal\n$ uti index.html screen.css app.js\npublic.html\npublic.css\ncom.netscape.javascript-source\n```\n\nIf any of the provided file path arguments are invalid,\nthe command exits with status code `1`\nand prints a message to standard error.\n\n```terminal\n$ uti invalid\nerror: invalid is not a file or directory\n```\n\nYou can combine `uti` with other Unix commands.\nFor example,\nto list the UTI for each file in a directory,\nyou might invoke the `find` command like so:\n\n```terminal\n$ ls .\nXcode_11.xip\nXcode.app\n\n$ find . -exec uti {} +\ncom.apple.xip-archive\ncom.apple.application-bundle\n```\n\n## Installation\n\n### Homebrew\n\nRun the following command to install using [homebrew](https://brew.sh/):\n\n```terminal\n$ brew install nshipster/formulae/uti\n```\n\n### Manually\n\nRun the following commands to build and install manually:\n\n```terminal\n$ git clone https://github.com/NSHipster/uti.git\n$ cd uti\n$ make install\n```\n\n## Additional Details\n\n`uti` delegates to the [`mdls`] system command,\nrequesting the `kMDItemContentType` metadata attribute\nand processing the output.\n\n## License\n\nMIT\n\n## Contact\n\nMattt ([@mattt](https://twitter.com/mattt))\n\n[`mdls`]: https://www.unix.com/man-page/osx/1/mdls/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNSHipster%2Futi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNSHipster%2Futi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNSHipster%2Futi/lists"}