{"id":24764733,"url":"https://github.com/mitchpaulus/uc","last_synced_at":"2026-04-05T21:04:11.558Z","repository":{"id":128794847,"uuid":"223605949","full_name":"mitchpaulus/uc","owner":"mitchpaulus","description":"Unit conversions from the shell!","archived":false,"fork":false,"pushed_at":"2020-12-21T15:59:02.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T17:10:32.776Z","etag":null,"topics":["engineering","haskell","shell","unit-conversions"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchpaulus.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-23T14:56:31.000Z","updated_at":"2020-12-24T20:46:20.000Z","dependencies_parsed_at":"2023-06-13T02:15:49.150Z","dependency_job_id":null,"html_url":"https://github.com/mitchpaulus/uc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitchpaulus/uc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchpaulus%2Fuc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchpaulus%2Fuc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchpaulus%2Fuc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchpaulus%2Fuc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchpaulus","download_url":"https://codeload.github.com/mitchpaulus/uc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchpaulus%2Fuc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["engineering","haskell","shell","unit-conversions"],"created_at":"2025-01-28T22:34:10.188Z","updated_at":"2026-04-05T21:04:11.520Z","avatar_url":"https://github.com/mitchpaulus.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `uc` - Unit Conversions from the Shell!\n\n`uc` is a fun little utility that lets you do a quick unit conversion\non the fly. As an engineer, I find this quite useful to have at my\nfingertips in the terminal. (Note: this was a small project to try out Haskell - in \nreality I typically use the [GNU `units`](https://www.gnu.org/software/units/) utility, which is\nfar more expansive and battle tested than this). \n\nThe basic usage is:\n\n`uc value fromUnit toUnit`\n\nand it works like:\n\n```\n$ uc 10 m2 ft2\n107.63910416709722\n```\n\n## Tab Completion\n\nTab completion for the units is available in bash. You just need to\nsource the line\n\n```sh\neval \"$(uc -c)\"\n```\n\nsomewhere in your `.bashrc` file.\n\n## Available Units\n\nArgument | Unit Name\n------|-------\n`F` | Fahrenheit\n`C` | Celsius\n`K` | Kelvin\n`R` | Rankine\n`m2` | Square meters\n`ft2` | Square feet\n`in2` | Square inches\n`km2` | Square kilometers\n`m` | Meters\n`ft` | Feet\n`kBtu` | Thousand BTU\n`MMBtu` | Million BTU\n`kWh` | Kilowatt hour\n`MWh` | Megawatt hour\n`GJ` | Gigajoules\n`ng_ccf` | Hundred cubic feet natural gas\n`ng_kcf` | Thousand cubic feet natural gas\n`ng_mcf` | Million cubic feet natural gas\n`ng_m3` | Cubic meters natural gas\n`Therms` | Therms\n`steam_lb` | lbs of steam\n`steam_klb` | Thousand lbs of steam\n`steam_Mlb` | Million lbs of steam\n`steam_kg` | kg of steam\n`ton-hrs` | Ton hours\n`m3/s` | Cubic meters per second\n`gpm` | Gallons per minute\n`cfm` | Cubic feet per minute\n`W` | Watt\n`kw` | Kilowatt\n`MW` | Megawatt\n`Btu/h` | BTU per hour\n`kBtu/h` | Thousand BTU per hour\n`ton` | Tons\n`hp` | Horsepower\n`kJ/kg` | Kilojoules per Kilogram\n`Btu/lbm` | BTU per pound mass\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchpaulus%2Fuc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchpaulus%2Fuc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchpaulus%2Fuc/lists"}